Class: Skypescraper::Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/skypescraper/contact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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