Class: OptaSD::Soccer::SoccerCore

Inherits:
Core show all
Defined in:
lib/opta_sd/soccer/soccer.rb

Constant Summary

Constants inherited from Core

Core::PARAMETERS

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Core

#get, #parse_data, #parse_json, #parse_xml

Constructor Details

#initializeSoccerCore

Returns a new instance of SoccerCore.



7
8
9
10
# File 'lib/opta_sd/soccer/soccer.rb', line 7

def initialize
  super
  @sport = 'soccerdata'
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



5
6
7
# File 'lib/opta_sd/soccer/soccer.rb', line 5

def data
  @data
end

#paramsObject

Returns the value of attribute params.



5
6
7
# File 'lib/opta_sd/soccer/soccer.rb', line 5

def params
  @params
end

Instance Method Details

#resource(resource_id) ⇒ Object



12
13
14
15
# File 'lib/opta_sd/soccer/soccer.rb', line 12

def resource(resource_id)
  @resource = resource_id
  self
end