Class: Reve::Classes::PersonalContact
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
Instance Attribute Summary (collapse)
-
- (Object) contact_id
readonly
Returns the value of attribute contact_id.
-
- (Object) contact_name
readonly
Returns the value of attribute contact_name.
-
- (Object) in_watchlist
readonly
Returns the value of attribute in_watchlist.
-
- (Object) standing
readonly
Returns the value of attribute standing.
Instance Method Summary (collapse)
-
- (PersonalContact) initialize(elem)
constructor
:nodoc:.
Constructor Details
- (PersonalContact) initialize(elem)
:nodoc:
170 171 172 173 174 175 |
# File 'lib/reve/classes.rb', line 170 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
- (Object) contact_id (readonly)
Returns the value of attribute contact_id
169 170 171 |
# File 'lib/reve/classes.rb', line 169 def contact_id @contact_id end |
- (Object) contact_name (readonly)
Returns the value of attribute contact_name
169 170 171 |
# File 'lib/reve/classes.rb', line 169 def contact_name @contact_name end |
- (Object) in_watchlist (readonly)
Returns the value of attribute in_watchlist
169 170 171 |
# File 'lib/reve/classes.rb', line 169 def in_watchlist @in_watchlist end |
- (Object) standing (readonly)
Returns the value of attribute standing
169 170 171 |
# File 'lib/reve/classes.rb', line 169 def standing @standing end |