Class: Hipbot::Plugins::Rapportive::Rapportive
- Inherits:
-
Object
- Object
- Hipbot::Plugins::Rapportive::Rapportive
- Defined in:
- lib/hipbot-plugins/rapportive.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#firstname ⇒ Object
Returns the value of attribute firstname.
-
#lastname ⇒ Object
Returns the value of attribute lastname.
Instance Method Summary collapse
-
#initialize(firstname, lastname, domain) ⇒ Rapportive
constructor
A new instance of Rapportive.
- #to_s ⇒ Object
Constructor Details
#initialize(firstname, lastname, domain) ⇒ Rapportive
Returns a new instance of Rapportive.
17 18 19 20 21 |
# File 'lib/hipbot-plugins/rapportive.rb', line 17 def initialize(firstname, lastname, domain) self.firstname = firstname self.lastname = lastname self.domain = domain end |
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain.
15 16 17 |
# File 'lib/hipbot-plugins/rapportive.rb', line 15 def domain @domain end |
#firstname ⇒ Object
Returns the value of attribute firstname.
15 16 17 |
# File 'lib/hipbot-plugins/rapportive.rb', line 15 def firstname @firstname end |
#lastname ⇒ Object
Returns the value of attribute lastname.
15 16 17 |
# File 'lib/hipbot-plugins/rapportive.rb', line 15 def lastname @lastname end |
Instance Method Details
#to_s ⇒ Object
23 24 25 26 |
# File 'lib/hipbot-plugins/rapportive.rb', line 23 def to_s return "Sorry, I could not find email address" if profile.nil? "Found it! Email #{profile['contact']['email']} is valid." end |