Class: C2eCore::Drops::NoteDrop

Inherits:
BaseDrop
  • Object
show all
Defined in:
/build/app/mailers/c2e_core/drops/note_drop.rb

Instance Method Summary collapse

Constructor Details

#initialize(note) ⇒ NoteDrop

Returns a new instance of NoteDrop.



6
7
8
9
# File '/build/app/mailers/c2e_core/drops/note_drop.rb', line 6

def initialize(note)
  super()
  @note = note
end

Instance Method Details

#descriptionString

Returns - Description. E.g.: “pravidlo ~ Pepa Novak ~ Sleva”.

Returns:

  • (String)
    • Description. E.g.: “pravidlo ~ Pepa Novak ~ Sleva”.



17
18
19
# File '/build/app/mailers/c2e_core/drops/note_drop.rb', line 17

def description
  @note.description
end

#idInteger

Returns - ID of note.

Returns:

  • (Integer)
    • ID of note



12
13
14
# File '/build/app/mailers/c2e_core/drops/note_drop.rb', line 12

def id
  @note.id
end

#notable_typeString

Returns - Notable type. E.g.: “informační”.

Returns:

  • (String)
    • Notable type. E.g.: “informační”.



22
23
24
# File '/build/app/mailers/c2e_core/drops/note_drop.rb', line 22

def notable_type
  @note.notable_type
end