Class: Sportradar::Api::Basketball::Broadcast

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

Returns a new instance of Broadcast.



7
8
9
10
# File 'lib/sportradar/api/basketball/broadcast.rb', line 7

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

Instance Attribute Details

#networkObject

Returns the value of attribute network.



5
6
7
# File 'lib/sportradar/api/basketball/broadcast.rb', line 5

def network
  @network
end

#responseObject

Returns the value of attribute response.



5
6
7
# File 'lib/sportradar/api/basketball/broadcast.rb', line 5

def response
  @response
end