Class: Sportradar::Api::Images::Ref

Inherits:
Data
  • Object
show all
Defined in:
lib/sportradar/api/images/ref.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) ⇒ 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

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/sportradar/api/images/ref.rb', line 4

def name
  @name
end

#responseObject

Returns the value of attribute response.



4
5
6
# File 'lib/sportradar/api/images/ref.rb', line 4

def response
  @response
end

#sportradar_idObject

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_idObject

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

#typeObject

Returns the value of attribute type.



4
5
6
# File 'lib/sportradar/api/images/ref.rb', line 4

def type
  @type
end