Class: Sportradar::Api::Content::Reference
- Defined in:
- lib/sportradar/api/content/reference.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) ⇒ Reference
constructor
A new instance of Reference.
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) ⇒ Reference
Returns a new instance of Reference.
6 7 8 9 10 11 12 |
# File 'lib/sportradar/api/content/reference.rb', line 6 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/content/reference.rb', line 4 def name @name end |
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/sportradar/api/content/reference.rb', line 4 def response @response end |
#sportradar_id ⇒ Object
Returns the value of attribute sportradar_id.
4 5 6 |
# File 'lib/sportradar/api/content/reference.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/content/reference.rb', line 4 def sportsdata_id @sportsdata_id end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/sportradar/api/content/reference.rb', line 4 def type @type end |