Class: EveAPI::Character
- Inherits:
-
Base
- Object
- Base
- EveAPI::Character
show all
- Defined in:
- lib/eve-api/eve-api.rb
Instance Method Summary
collapse
Methods inherited from Base
#id, #initialize, #method_missing, #type
Constructor Details
This class inherits a constructor from EveAPI::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class EveAPI::Base
Instance Method Details
#accounts ⇒ Object
103
104
105
106
107
108
109
|
# File 'lib/eve-api/eve-api.rb', line 103
def accounts
accounts = []
@api.account_balances(id, :char).each do |raw_account|
accounts << Account.new(raw_account, @api, self, :char)
end
return accounts
end
|
#corporation ⇒ Object
100
101
102
|
# File 'lib/eve-api/eve-api.rb', line 100
def corporation
return(Corporation.new({:id => corporation_id, :name => corporation_name}, @api, self))
end
|
#skill_in_training ⇒ Object
110
111
112
|
# File 'lib/eve-api/eve-api.rb', line 110
def skill_in_training
return SkillInTraining.new(@api.skill_in_training(id), @api)
end
|
#skills ⇒ Object
113
114
115
|
# File 'lib/eve-api/eve-api.rb', line 113
def skills
return CharacterSkills.new(@api.skills(id), @api)
end
|