Class: Reve::Classes::PersonalContact

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

Overview

Represents a single Contact Attributes:

  • contact_id ( Fixnum ) - ID of the Contact.

  • contact_name ( String ) - Name of the belligerant Contact.

  • in_watchlist ( Fixnum ) - Whether or not the Contact is in the watchlist.

  • standing ( String ) - The standing of the Contact.

Direct Known Subclasses

AllianceContact, CorporateContact

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elem) ⇒ PersonalContact

:nodoc:



172
173
174
175
176
177
# File 'lib/reve/classes.rb', line 172

def initialize(elem) #:nodoc:
  @contact_id = elem['contactID'].to_i
  @contact_name = elem['contactName']
  @in_watchlist = elem['inWatchlist'] == 'True' ?  true : false
  @standing     = elem['standing'].to_i
end

Instance Attribute Details

#contact_idObject (readonly)

Returns the value of attribute contact_id



171
172
173
# File 'lib/reve/classes.rb', line 171

def contact_id
  @contact_id
end

#contact_nameObject (readonly)

Returns the value of attribute contact_name



171
172
173
# File 'lib/reve/classes.rb', line 171

def contact_name
  @contact_name
end

#in_watchlistObject (readonly)

Returns the value of attribute in_watchlist



171
172
173
# File 'lib/reve/classes.rb', line 171

def in_watchlist
  @in_watchlist
end

#standingObject (readonly)

Returns the value of attribute standing



171
172
173
# File 'lib/reve/classes.rb', line 171

def standing
  @standing
end