Class: Greeve::Corporation::Locations
- Defined in:
- lib/greeve/corporation/locations.rb
Overview
Location of an item or character.
Instance Method Summary collapse
-
#initialize(*ids, opts = {}) ⇒ Locations
constructor
A new instance of Locations.
Methods inherited from BaseItem
attribute, #cache_expired?, #cached_until, endpoint, #inspect, namespace, #refresh, rowset, #to_s
Methods included from Helpers::AttributeToHash
Constructor Details
#initialize(*ids, opts = {}) ⇒ Locations
Returns a new instance of Locations.
22 23 24 25 26 27 28 |
# File 'lib/greeve/corporation/locations.rb', line 22 def initialize(*ids) opts = ids.last.is_a?(Hash) ? ids.pop : {} opts[:query_params] = { "IDs" => ids.join(",") } super(opts) end |