Class: Sportradar::Api::Images::Tag
- Defined in:
- lib/sportradar/api/images/tag.rb
Instance Attribute Summary collapse
-
#response ⇒ Object
Returns the value of attribute response.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(data) ⇒ Tag
constructor
A new instance of Tag.
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
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/sportradar/api/images/tag.rb', line 4 def response @response end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/sportradar/api/images/tag.rb', line 4 def type @type end |
#value ⇒ Object
Returns the value of attribute value.
4 5 6 |
# File 'lib/sportradar/api/images/tag.rb', line 4 def value @value end |