Class: Reve::Classes::Corporation

Inherits:
Object
  • Object
show all
Defined in:
lib/reve/classes.rb

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

Instance Method Summary collapse

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

#idObject (readonly)

Returns the value of attribute id.



50
51
52
# File 'lib/reve/classes.rb', line 50

def id
  @id
end

#start_dateObject (readonly)

Returns the value of attribute start_date.



50
51
52
# File 'lib/reve/classes.rb', line 50

def start_date
  @start_date
end