Class: GodvilleKit::DiaryEntry
- Inherits:
-
Object
- Object
- GodvilleKit::DiaryEntry
- Defined in:
- lib/godville_kit/diary_entry.rb
Instance Attribute Summary collapse
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#time ⇒ Object
readonly
Returns the value of attribute time.
Instance Method Summary collapse
-
#initialize(raw_diary_entry_data) ⇒ DiaryEntry
constructor
A new instance of DiaryEntry.
Constructor Details
#initialize(raw_diary_entry_data) ⇒ DiaryEntry
Returns a new instance of DiaryEntry.
6 7 8 9 |
# File 'lib/godville_kit/diary_entry.rb', line 6 def initialize(raw_diary_entry_data) @message = raw_diary_entry_data['msg'].to_s @time = raw_diary_entry_data['time'].to_s end |
Instance Attribute Details
#message ⇒ Object (readonly)
Returns the value of attribute message.
3 4 5 |
# File 'lib/godville_kit/diary_entry.rb', line 3 def @message end |
#time ⇒ Object (readonly)
Returns the value of attribute time.
3 4 5 |
# File 'lib/godville_kit/diary_entry.rb', line 3 def time @time end |