Class: Sportradar::Api::Content::Reference

Inherits:
Data
  • Object
show all
Defined in:
lib/sportradar/api/content/reference.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/sportradar/api/content/reference.rb', line 4

def name
  @name
end

#responseObject

Returns the value of attribute response.



4
5
6
# File 'lib/sportradar/api/content/reference.rb', line 4

def response
  @response
end

#sportradar_idObject

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_idObject

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

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/sportradar/api/content/reference.rb', line 4

def type
  @type
end