Class: Greeve::Eve::TypeName
- Defined in:
- lib/greeve/eve/type_name.rb
Overview
Returns the names associated with a sequence of typeIDs.
Instance Method Summary collapse
-
#initialize(*ids, opts = {}) ⇒ TypeName
constructor
A new instance of TypeName.
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 = {}) ⇒ TypeName
Returns a new instance of TypeName.
19 20 21 22 23 24 25 |
# File 'lib/greeve/eve/type_name.rb', line 19 def initialize(*ids) opts = ids.last.is_a?(Hash) ? ids.pop : {} opts[:query_params] = { "IDs" => ids.join(",") } super(opts) end |