Class: Isoics::Note
- Inherits:
-
Object
- Object
- Isoics::Note
- Defined in:
- lib/isoics/ics.rb
Instance Attribute Summary collapse
- #ics_code ⇒ String readonly
- #text ⇒ String readonly
Instance Method Summary collapse
-
#ics ⇒ Isoics::ICS
Fetch referenced ICS.
-
#initialize(note) ⇒ Note
constructor
A new instance of Note.
Constructor Details
#initialize(note) ⇒ Note
Returns a new instance of Note.
7 8 9 |
# File 'lib/isoics/ics.rb', line 7 def initialize(note) @text, @ics_code = note.values_at(:text, :"ics-code") end |
Instance Attribute Details
#ics_code ⇒ String (readonly)
4 5 6 |
# File 'lib/isoics/ics.rb', line 4 def ics_code @ics_code end |
#text ⇒ String (readonly)
4 5 6 |
# File 'lib/isoics/ics.rb', line 4 def text @text end |
Instance Method Details
#ics ⇒ Isoics::ICS
Fetch referenced ICS.
13 14 15 |
# File 'lib/isoics/ics.rb', line 13 def ics Isoics.fetch ics_code if ics_code end |