Class: GodvilleKit::DiaryEntry

Inherits:
Object
  • Object
show all
Defined in:
lib/godville_kit/diary_entry.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#messageObject (readonly)

Returns the value of attribute message.



3
4
5
# File 'lib/godville_kit/diary_entry.rb', line 3

def message
  @message
end

#timeObject (readonly)

Returns the value of attribute time.



3
4
5
# File 'lib/godville_kit/diary_entry.rb', line 3

def time
  @time
end