Class: PossibleEmail::Profile
- Inherits:
-
Object
- Object
- PossibleEmail::Profile
- Defined in:
- lib/possible_email/profile/profile.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#first_name ⇒ Object
readonly
Returns the value of attribute first_name.
-
#friendly_name ⇒ Object
readonly
Returns the value of attribute friendly_name.
-
#headline ⇒ Object
readonly
Returns the value of attribute headline.
-
#images ⇒ Object
readonly
Returns the value of attribute images.
-
#last_name ⇒ Object
readonly
Returns the value of attribute last_name.
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#memberships ⇒ Object
readonly
Returns the value of attribute memberships.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#occupations ⇒ Object
readonly
Returns the value of attribute occupations.
-
#phones ⇒ Object
readonly
Returns the value of attribute phones.
-
#success ⇒ Object
readonly
Returns the value of attribute success.
Instance Method Summary collapse
- #attributes ⇒ Object
-
#initialize(data) ⇒ Profile
constructor
A new instance of Profile.
- #to_s ⇒ Object
Constructor Details
#initialize(data) ⇒ Profile
Returns a new instance of Profile.
12 13 14 15 16 17 |
# File 'lib/possible_email/profile/profile.rb', line 12 def initialize(data) @data = data retrieve_attribute retrieve_attribute_collection end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def data @data end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def email @email end |
#first_name ⇒ Object (readonly)
Returns the value of attribute first_name.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def first_name @first_name end |
#friendly_name ⇒ Object (readonly)
Returns the value of attribute friendly_name.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def friendly_name @friendly_name end |
#headline ⇒ Object (readonly)
Returns the value of attribute headline.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def headline @headline end |
#images ⇒ Object (readonly)
Returns the value of attribute images.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def images @images end |
#last_name ⇒ Object (readonly)
Returns the value of attribute last_name.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def last_name @last_name end |
#location ⇒ Object (readonly)
Returns the value of attribute location.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def location @location end |
#memberships ⇒ Object (readonly)
Returns the value of attribute memberships.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def memberships @memberships end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def name @name end |
#occupations ⇒ Object (readonly)
Returns the value of attribute occupations.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def occupations @occupations end |
#phones ⇒ Object (readonly)
Returns the value of attribute phones.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def phones @phones end |
#success ⇒ Object (readonly)
Returns the value of attribute success.
8 9 10 |
# File 'lib/possible_email/profile/profile.rb', line 8 def success @success end |
Instance Method Details
#attributes ⇒ Object
19 20 21 |
# File 'lib/possible_email/profile/profile.rb', line 19 def attributes instance_variables.select { |i| i != :@data }.map { |i| i.to_s[1..-1] } end |
#to_s ⇒ Object
23 24 25 |
# File 'lib/possible_email/profile/profile.rb', line 23 def to_s "#{@name} - #{email}" end |