Class: EveOnline::ESI::Object
- Inherits:
-
Object
- Object
- EveOnline::ESI::Object
- Includes:
- ParsedHeaders
- Defined in:
- lib/eve_online/esi/object.rb
Direct Known Subclasses
Models::Aggressor, Models::Alliance, Models::AllianceCorporations, Models::AllianceIcon, Models::Alliances, Models::Ally, Models::Ancestry, Models::AsteroidBelt, Models::Attributes, Models::Bloodline, Models::Blueprint, Models::Categories, Models::Category, Models::Character, Models::CharacterAsset, Models::CharacterCorporationHistory, Models::CharacterPortrait, Models::CharacterShip, Models::CharacterWallet, Models::Clones, Models::Constellation, Models::Constellations, Models::Corporation, Models::Defender, Models::Destination, Models::DogmaAttribute, Models::DogmaAttributeShort, Models::DogmaAttributes, Models::DogmaEffect, Models::DogmaEffectModifier, Models::DogmaEffectShort, Models::DogmaEffects, Models::Faction, Models::Graphic, Models::Graphics, Models::Group, Models::Groups, Models::HomeLocation, Models::Implants, Models::JumpClone, Models::LoyaltyPoint, Models::LoyaltyStoreOffer, Models::Moon, Models::Notification, Models::NpcCorporations, Models::OfferRequiredItem, Models::Online, Models::Planet, Models::PlanetShort, Models::Position, Models::Race, Models::Region, Models::Regions, Models::Route, Models::Search, Models::ServerStatus, Models::Skill, Models::SkillQueueEntry, Models::Skills, Models::Star, Models::Stargate, Models::Station, Models::Structures, Models::System, Models::Systems, Models::Type, Models::Types, Models::War, Models::Wars
Instance Attribute Summary collapse
-
#attributes ⇒ Object
readonly
Returns the value of attribute attributes.
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#headers ⇒ Object
readonly
Returns the value of attribute headers.
Instance Method Summary collapse
-
#initialize(attributes: nil, body: nil, headers: nil) ⇒ Object
constructor
A new instance of Object.
- #method_missing(method, *args, &block) ⇒ Object
- #respond_to_missing?(_, _ = false) ⇒ Boolean
Methods included from ParsedHeaders
#cache_status, #error_limit_remain, #error_limit_reset, #etag, #ratelimit_group, #ratelimit_limit, #ratelimit_remaining, #ratelimit_used, #request_id, #total_pages
Constructor Details
#initialize(attributes: nil, body: nil, headers: nil) ⇒ Object
Returns a new instance of Object.
15 16 17 18 19 |
# File 'lib/eve_online/esi/object.rb', line 15 def initialize(attributes: nil, body: nil, headers: nil) @attributes = OpenStruct.new(attributes) @body = body @headers = headers end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
Instance Attribute Details
#attributes ⇒ Object (readonly)
Returns the value of attribute attributes.
10 11 12 |
# File 'lib/eve_online/esi/object.rb', line 10 def attributes @attributes end |
#body ⇒ Object (readonly)
Returns the value of attribute body.
10 11 12 |
# File 'lib/eve_online/esi/object.rb', line 10 def body @body end |
#headers ⇒ Object (readonly)
Returns the value of attribute headers.
10 11 12 |
# File 'lib/eve_online/esi/object.rb', line 10 def headers @headers end |
Instance Method Details
#respond_to_missing?(_, _ = false) ⇒ Boolean
26 27 28 |
# File 'lib/eve_online/esi/object.rb', line 26 def respond_to_missing?(_, _ = false) true end |