Class: PossibleEmail::Membership
- Inherits:
-
Object
- Object
- PossibleEmail::Membership
- Defined in:
- lib/possible_email/profile/membership.rb
Instance Attribute Summary collapse
-
#profile_id ⇒ Object
readonly
Returns the value of attribute profile_id.
-
#profile_url ⇒ Object
readonly
Returns the value of attribute profile_url.
-
#site_name ⇒ Object
readonly
Returns the value of attribute site_name.
-
#username ⇒ Object
readonly
Returns the value of attribute username.
Instance Method Summary collapse
-
#initialize(data) ⇒ Membership
constructor
A new instance of Membership.
Constructor Details
#initialize(data) ⇒ Membership
Returns a new instance of Membership.
5 6 7 8 9 10 |
# File 'lib/possible_email/profile/membership.rb', line 5 def initialize(data) @profile_url = data['profile_url'] @profile_id = data['profile_id'] @username = data['username'] @site_name = data['site_name'] end |
Instance Attribute Details
#profile_id ⇒ Object (readonly)
Returns the value of attribute profile_id.
3 4 5 |
# File 'lib/possible_email/profile/membership.rb', line 3 def profile_id @profile_id end |
#profile_url ⇒ Object (readonly)
Returns the value of attribute profile_url.
3 4 5 |
# File 'lib/possible_email/profile/membership.rb', line 3 def profile_url @profile_url end |
#site_name ⇒ Object (readonly)
Returns the value of attribute site_name.
3 4 5 |
# File 'lib/possible_email/profile/membership.rb', line 3 def site_name @site_name end |
#username ⇒ Object (readonly)
Returns the value of attribute username.
3 4 5 |
# File 'lib/possible_email/profile/membership.rb', line 3 def username @username end |