Class: BlizzardApi::OverwatchLeague::Segments
- Defined in:
- lib/blizzard_api_rb/overwatch_league/community/segments.rb
Overview
This class allows access to OWL2 segment data
You can get an instance of this class using the default region as follows:
api_instance = BlizzardApi::OverwatchLeague.segments
Constant Summary
Constants inherited from Request
Request::CACHE_DAY, Request::CACHE_HOUR, Request::CACHE_TRIMESTER
Constants included from ApiStandards
Instance Attribute Summary
Attributes inherited from Request
Instance Method Summary collapse
-
#get(segment_id, **options) ⇒ Object
Returns segment information.
Methods inherited from Request
Methods inherited from Request
Constructor Details
This class inherits a constructor from BlizzardApi::OverwatchLeague::Request
Instance Method Details
#get(segment_id, **options) ⇒ Object
Returns segment information
17 18 19 |
# File 'lib/blizzard_api_rb/overwatch_league/community/segments.rb', line 17 def get(segment_id, **) api_request "#{base_url(:community)}/v1/segments/#{segment_id}", **{ ttl: CACHE_DAY }.merge() end |