Class: C2eCore::Drops::NoteDrop
- Defined in:
- /build/app/mailers/c2e_core/drops/note_drop.rb
Instance Method Summary collapse
-
#description ⇒ String
-
Description.
-
-
#id ⇒ Integer
-
ID of note.
-
-
#initialize(note) ⇒ NoteDrop
constructor
A new instance of NoteDrop.
-
#notable_type ⇒ String
-
Notable type.
-
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
#description ⇒ String
Returns - 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 |
#id ⇒ Integer
Returns - ID of note.
12 13 14 |
# File '/build/app/mailers/c2e_core/drops/note_drop.rb', line 12 def id @note.id end |
#notable_type ⇒ String
Returns - 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 |