Class: Skypescraper::Contact
- Inherits:
-
Object
- Object
- Skypescraper::Contact
- Defined in:
- lib/skypescraper/contact.rb
Instance Attribute Summary collapse
-
#identity ⇒ Object
readonly
Returns the value of attribute identity.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(identity, name) ⇒ Contact
constructor
A new instance of Contact.
Constructor Details
#initialize(identity, name) ⇒ Contact
Returns a new instance of Contact.
5 6 7 8 |
# File 'lib/skypescraper/contact.rb', line 5 def initialize(identity, name) @identity = identity @name = name end |
Instance Attribute Details
#identity ⇒ Object (readonly)
Returns the value of attribute identity.
3 4 5 |
# File 'lib/skypescraper/contact.rb', line 3 def identity @identity end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/skypescraper/contact.rb', line 3 def name @name end |