Class: BitFlyer::Models::Chat
- Inherits:
-
Object
- Object
- BitFlyer::Models::Chat
- Defined in:
- lib/bit_flyer/models/chat.rb
Instance Attribute Summary collapse
-
#date ⇒ Object
readonly
Returns the value of attribute date.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#nickname ⇒ Object
readonly
Returns the value of attribute nickname.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Chat
constructor
A new instance of Chat.
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
#date ⇒ Object (readonly)
Returns the value of attribute date.
4 5 6 |
# File 'lib/bit_flyer/models/chat.rb', line 4 def date @date end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
4 5 6 |
# File 'lib/bit_flyer/models/chat.rb', line 4 def @message end |
#nickname ⇒ Object (readonly)
Returns the value of attribute nickname.
4 5 6 |
# File 'lib/bit_flyer/models/chat.rb', line 4 def nickname @nickname end |