Class: Statium::Opta::Resource::Venue
- Inherits:
-
CommonResource
- Object
- CommonResource
- Statium::Opta::Resource::Venue
- Defined in:
- lib/statium/opta/resource/venue.rb
Instance Attribute Summary collapse
-
#uuid ⇒ Object
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(uuid) ⇒ Venue
constructor
A new instance of Venue.
- #parse(response_body) ⇒ Object
- #uri(auth_key, lang = 'en') ⇒ Object
Methods inherited from CommonResource
#build_uri, #common_url_options
Constructor Details
#initialize(uuid) ⇒ Venue
Returns a new instance of Venue
7 8 9 |
# File 'lib/statium/opta/resource/venue.rb', line 7 def initialize(uuid) @uuid = uuid end |
Instance Attribute Details
#uuid ⇒ Object
Returns the value of attribute uuid
5 6 7 |
# File 'lib/statium/opta/resource/venue.rb', line 5 def uuid @uuid end |
Instance Method Details
#parse(response_body) ⇒ Object
18 19 20 |
# File 'lib/statium/opta/resource/venue.rb', line 18 def parse response_body Statium::Opta::Model::Venue.build response_body end |
#uri(auth_key, lang = 'en') ⇒ Object
11 12 13 14 15 16 |
# File 'lib/statium/opta/resource/venue.rb', line 11 def uri(auth_key, lang = 'en') = { venue: @uuid } build_uri('venues', auth_key, nil, (lang).merge()) end |