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
-
#contact_id ⇒ Object
readonly
Returns the value of attribute contact_id.
-
#contact_name ⇒ Object
readonly
Returns the value of attribute contact_name.
-
#in_watchlist ⇒ Object
readonly
Returns the value of attribute in_watchlist.
-
#standing ⇒ Object
readonly
Returns the value of attribute standing.
Instance Method Summary collapse
-
#initialize(elem) ⇒ PersonalContact
constructor
:nodoc:.
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_id ⇒ Object (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_name ⇒ Object (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_watchlist ⇒ Object (readonly)
Returns the value of attribute in_watchlist.
171 172 173 |
# File 'lib/reve/classes.rb', line 171 def in_watchlist @in_watchlist end |
#standing ⇒ Object (readonly)
Returns the value of attribute standing.
171 172 173 |
# File 'lib/reve/classes.rb', line 171 def standing @standing end |