Class: Sportradar::Api::Images::Link
- Defined in:
- lib/sportradar/api/images/link.rb
Instance Attribute Summary collapse
-
#height ⇒ Object
Returns the value of attribute height.
-
#href ⇒ Object
Returns the value of attribute href.
-
#response ⇒ Object
Returns the value of attribute response.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(data) ⇒ Link
constructor
A new instance of Link.
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) ⇒ Link
Returns a new instance of Link.
6 7 8 9 10 11 |
# File 'lib/sportradar/api/images/link.rb', line 6 def initialize(data) @response = data @width = data["width"] @height = data["height"] @href = data["href"] end |
Instance Attribute Details
#height ⇒ Object
Returns the value of attribute height.
4 5 6 |
# File 'lib/sportradar/api/images/link.rb', line 4 def height @height end |
#href ⇒ Object
Returns the value of attribute href.
4 5 6 |
# File 'lib/sportradar/api/images/link.rb', line 4 def href @href end |
#response ⇒ Object
Returns the value of attribute response.
4 5 6 |
# File 'lib/sportradar/api/images/link.rb', line 4 def response @response end |
#width ⇒ Object
Returns the value of attribute width.
4 5 6 |
# File 'lib/sportradar/api/images/link.rb', line 4 def width @width end |