Class: LeagueOfLegends::DTO::MessageOfDay
- Inherits:
-
Object
- Object
- LeagueOfLegends::DTO::MessageOfDay
- Defined in:
- lib/league_of_legends/dto/message_of_day.rb
Instance Attribute Summary collapse
-
#create_date ⇒ Object
readonly
Returns the value of attribute create_date.
-
#message ⇒ Object
readonly
Returns the value of attribute message.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ MessageOfDay
constructor
A new instance of MessageOfDay.
Constructor Details
#initialize(attributes) ⇒ MessageOfDay
Returns a new instance of MessageOfDay.
11 12 13 14 15 16 17 |
# File 'lib/league_of_legends/dto/message_of_day.rb', line 11 def initialize attributes return if attributes.nil? @create_date = Time.at(attributes[:createDate]/1000) @message = attributes[:message] @version = attributes[:version] end |
Instance Attribute Details
#create_date ⇒ Object (readonly)
Returns the value of attribute create_date.
9 10 11 |
# File 'lib/league_of_legends/dto/message_of_day.rb', line 9 def create_date @create_date end |
#message ⇒ Object (readonly)
Returns the value of attribute message.
9 10 11 |
# File 'lib/league_of_legends/dto/message_of_day.rb', line 9 def @message end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
9 10 11 |
# File 'lib/league_of_legends/dto/message_of_day.rb', line 9 def version @version end |
Class Method Details
.version ⇒ Object
5 6 7 |
# File 'lib/league_of_legends/dto/message_of_day.rb', line 5 def self.version ::LeagueOfLegends::DTO::Team.version end |