Class: BitFlyer::Models::Chat

Inherits:
Object
  • Object
show all
Defined in:
lib/bit_flyer/models/chat.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ Chat

Returns a new instance of Chat.



6
7
8
9
10
# File 'lib/bit_flyer/models/chat.rb', line 6

def initialize(attrs = {})
  @nickname = attrs['nickname']
  @message = attrs['message']
  @date = attrs['date']
end

Instance Attribute Details

#dateObject (readonly)

Returns the value of attribute date.



4
5
6
# File 'lib/bit_flyer/models/chat.rb', line 4

def date
  @date
end

#messageObject (readonly)

Returns the value of attribute message.



4
5
6
# File 'lib/bit_flyer/models/chat.rb', line 4

def message
  @message
end

#nicknameObject (readonly)

Returns the value of attribute nickname.



4
5
6
# File 'lib/bit_flyer/models/chat.rb', line 4

def nickname
  @nickname
end