Class: Sportradar::Api::Images::Link

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

#heightObject

Returns the value of attribute height.



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

def height
  @height
end

#hrefObject

Returns the value of attribute href.



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

def href
  @href
end

#responseObject

Returns the value of attribute response.



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

def response
  @response
end

#widthObject

Returns the value of attribute width.



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

def width
  @width
end