Class: Reve::Classes::Contracts

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

Overview

Characters contracts

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ Contracts

:nodoc:



326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
# File 'lib/reve/classes.rb', line 326

def initialize(elem) #:nodoc:
  @contractID       =elem['contractID'].to_i
  @issuerID         =elem['issuerID'].to_i
  @issuerCorpID     =elem['issuerCorpID'].to_i
  @assigneeID       =elem['assigneeID'].to_i
  @acceptorID       =elem['acceptorID'].to_i
  @startStationID   =elem['startStationID'].to_i
  @endStationID     =elem['endStationID'].to_i
  @type             =elem['type'].to_s
  @status           =elem['status'].to_s
  @title            =elem['title'].to_s
  @forCorp          =elem['forCorp'].to_i
  @availability     =elem['availability'].to_s
  @dateIssued       =elem['dateIssued'].to_time
  @dateExpired      =elem['dateExpired'].to_time
  @dateAccepted     =elem['dateAccepted'].to_time
  @numDays          =elem['numDays'].to_i
  @dateCompleted    =elem['dateCompleted'].to_time
  @price            =elem['price'].to_f
  @reward           =elem['reward'].to_f
  @collateral       =elem['collateral'].to_f
  @buyout           =elem['buyout'].to_f
  @volume           =elem['volume'].to_i
end

Instance Attribute Details

#acceptorIDObject (readonly)

Returns the value of attribute acceptorID.



322
323
324
# File 'lib/reve/classes.rb', line 322

def acceptorID
  @acceptorID
end

#assigneeIDObject (readonly)

Returns the value of attribute assigneeID.



321
322
323
# File 'lib/reve/classes.rb', line 321

def assigneeID
  @assigneeID
end

#availabilityObject (readonly)

Returns the value of attribute availability.



323
324
325
# File 'lib/reve/classes.rb', line 323

def availability
  @availability
end

#buyoutObject (readonly)

Returns the value of attribute buyout.



324
325
326
# File 'lib/reve/classes.rb', line 324

def buyout
  @buyout
end

#collateralObject (readonly)

Returns the value of attribute collateral.



324
325
326
# File 'lib/reve/classes.rb', line 324

def collateral
  @collateral
end

#contractIDObject (readonly)

Returns the value of attribute contractID.



321
322
323
# File 'lib/reve/classes.rb', line 321

def contractID
  @contractID
end

#dateAcceptedObject (readonly)

Returns the value of attribute dateAccepted.



323
324
325
# File 'lib/reve/classes.rb', line 323

def dateAccepted
  @dateAccepted
end

#dateCompletedObject (readonly)

Returns the value of attribute dateCompleted.



324
325
326
# File 'lib/reve/classes.rb', line 324

def dateCompleted
  @dateCompleted
end

#dateExpiredObject (readonly)

Returns the value of attribute dateExpired.



323
324
325
# File 'lib/reve/classes.rb', line 323

def dateExpired
  @dateExpired
end

#dateIssuedObject (readonly)

Returns the value of attribute dateIssued.



323
324
325
# File 'lib/reve/classes.rb', line 323

def dateIssued
  @dateIssued
end

#endStationIDObject (readonly)

Returns the value of attribute endStationID.



322
323
324
# File 'lib/reve/classes.rb', line 322

def endStationID
  @endStationID
end

#forCorpObject (readonly)

Returns the value of attribute forCorp.



323
324
325
# File 'lib/reve/classes.rb', line 323

def forCorp
  @forCorp
end

#issuerCorpIDObject (readonly)

Returns the value of attribute issuerCorpID.



321
322
323
# File 'lib/reve/classes.rb', line 321

def issuerCorpID
  @issuerCorpID
end

#issuerIDObject (readonly)

Returns the value of attribute issuerID.



321
322
323
# File 'lib/reve/classes.rb', line 321

def issuerID
  @issuerID
end

#numDaysObject (readonly)

Returns the value of attribute numDays.



324
325
326
# File 'lib/reve/classes.rb', line 324

def numDays
  @numDays
end

#priceObject (readonly)

Returns the value of attribute price.



324
325
326
# File 'lib/reve/classes.rb', line 324

def price
  @price
end

#rewardObject (readonly)

Returns the value of attribute reward.



324
325
326
# File 'lib/reve/classes.rb', line 324

def reward
  @reward
end

#startStationIDObject (readonly)

Returns the value of attribute startStationID.



322
323
324
# File 'lib/reve/classes.rb', line 322

def startStationID
  @startStationID
end

#statusObject (readonly)

Returns the value of attribute status.



322
323
324
# File 'lib/reve/classes.rb', line 322

def status
  @status
end

#titleObject (readonly)

Returns the value of attribute title.



323
324
325
# File 'lib/reve/classes.rb', line 323

def title
  @title
end

#typeObject (readonly)

Returns the value of attribute type.



322
323
324
# File 'lib/reve/classes.rb', line 322

def type
  @type
end

#volumeObject (readonly)

Returns the value of attribute volume.



325
326
327
# File 'lib/reve/classes.rb', line 325

def volume
  @volume
end