Class: Reve::Classes::Corporation
Overview
Only for use in Alliance class (member_corporations array) from the Reve::API#alliances call Attributes
-
id ( Fixnum ) - ID of the Corporation (use this in the Reve::API#corporation_sheet call)
-
start_date ( Time ) - When the Corporation was started?
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#start_date ⇒ Object
readonly
Returns the value of attribute start_date.
Instance Method Summary collapse
-
#initialize(elem) ⇒ Corporation
constructor
:nodoc:.
Constructor Details
#initialize(elem) ⇒ Corporation
:nodoc:
51 52 53 54 |
# File 'lib/reve/classes.rb', line 51 def initialize(elem) #:nodoc: @id = elem['corporationID'].to_i @start_date = elem['startDate'].to_time end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
50 51 52 |
# File 'lib/reve/classes.rb', line 50 def id @id end |
#start_date ⇒ Object (readonly)
Returns the value of attribute start_date.
50 51 52 |
# File 'lib/reve/classes.rb', line 50 def start_date @start_date end |