Class: Sportradar::Api::Images::Tag

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

Returns a new instance of Tag.



6
7
8
9
10
# File 'lib/sportradar/api/images/tag.rb', line 6

def initialize(data)
  @response = data
  @type = data["type"]
  @value = data["value"]
end

Instance Attribute Details

#responseObject

Returns the value of attribute response.



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

def response
  @response
end

#typeObject

Returns the value of attribute type.



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

def type
  @type
end

#valueObject

Returns the value of attribute value.



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

def value
  @value
end