Class: Sportradar::Api::Images::Ref
- Defined in:
- lib/sportradar/api/images/ref.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#response ⇒ Object
Returns the value of attribute response.
-
#sportradar_id ⇒ Object
Returns the value of attribute sportradar_id.
-
#sportsdata_id ⇒ Object
Returns the value of attribute sportsdata_id.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(data) ⇒ Ref
constructor
A new instance of Ref.
Methods inherited from Data
#all_attributes, #attributes, #create_data, #parse_into_array, #parse_into_array_with_options, #parse_out_hashes, #structure_links, #update_data
Constructor Details
#initialize(data) ⇒ Ref
Returns a new instance of Ref.
5 6 7 8 9 10 11 |
# File 'lib/sportradar/api/images/ref.rb', line 5 def initialize(data) @response = data @sportradar_id = data["sportradar_id"] @sportsdata_id = data["sportsdata_id"] @type = data["type"] @name = data["name"] end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/sportradar/api/images/ref.rb', line 4 def name @name end |
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/sportradar/api/images/ref.rb', line 4 def response @response end |
#sportradar_id ⇒ Object
Returns the value of attribute sportradar_id.
4 5 6 |
# File 'lib/sportradar/api/images/ref.rb', line 4 def sportradar_id @sportradar_id end |
#sportsdata_id ⇒ Object
Returns the value of attribute sportsdata_id.
4 5 6 |
# File 'lib/sportradar/api/images/ref.rb', line 4 def sportsdata_id @sportsdata_id end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/sportradar/api/images/ref.rb', line 4 def type @type end |