Class: EveCrest::Response::Bloodlines
- Inherits:
-
BaseResponse
- Object
- BaseResponse
- EveCrest::Response::Bloodlines
- Defined in:
- lib/responses/bloodlines.rb
Instance Attribute Summary
Attributes inherited from BaseResponse
Instance Method Summary collapse
Methods inherited from BaseResponse
#cached_until, #error_message, #initialize, #raw, #success?
Constructor Details
This class inherits a constructor from EveCrest::BaseResponse
Instance Method Details
#all ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/responses/bloodlines.rb', line 4 def all bloodlines = Array.new data['items'].each do |bloodline_data| bloodlines.push(EveCrest::Bloodline.new(bloodline_data)) end bloodlines end |
#count ⇒ Object
11 12 13 |
# File 'lib/responses/bloodlines.rb', line 11 def count data['totalCount'] end |