Class: Bento::Subscriber
- Inherits:
-
Object
- Object
- Bento::Subscriber
- Defined in:
- lib/bento/resources/subscribers.rb
Instance Attribute Summary collapse
-
#cached_tag_ids ⇒ Object
readonly
Returns the value of attribute cached_tag_ids.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#navigation_url ⇒ Object
readonly
Returns the value of attribute navigation_url.
-
#unsubscribed_at ⇒ Object
readonly
Returns the value of attribute unsubscribed_at.
-
#uuid ⇒ Object
readonly
Returns the value of attribute uuid.
Instance Method Summary collapse
-
#initialize(data) ⇒ Subscriber
constructor
A new instance of Subscriber.
Constructor Details
permalink #initialize(data) ⇒ Subscriber
Returns a new instance of Subscriber.
126 127 128 129 130 131 132 133 134 135 |
# File 'lib/bento/resources/subscribers.rb', line 126 def initialize(data) @id = data['id'] attributes = data['attributes'] @uuid = attributes['uuid'] @email = attributes['email'] @fields = attributes['fields'] @cached_tag_ids = attributes['cached_tag_ids'] @unsubscribed_at = attributes['unsubscribed_at'] @navigation_url = attributes['navigation_url'] end |
Instance Attribute Details
permalink #cached_tag_ids ⇒ Object (readonly)
Returns the value of attribute cached_tag_ids.
124 125 126 |
# File 'lib/bento/resources/subscribers.rb', line 124 def cached_tag_ids @cached_tag_ids end |
permalink #email ⇒ Object (readonly)
Returns the value of attribute email.
124 125 126 |
# File 'lib/bento/resources/subscribers.rb', line 124 def email @email end |
permalink #fields ⇒ Object (readonly)
Returns the value of attribute fields.
124 125 126 |
# File 'lib/bento/resources/subscribers.rb', line 124 def fields @fields end |
permalink #id ⇒ Object (readonly)
Returns the value of attribute id.
124 125 126 |
# File 'lib/bento/resources/subscribers.rb', line 124 def id @id end |
permalink #navigation_url ⇒ Object (readonly)
Returns the value of attribute navigation_url.
124 125 126 |
# File 'lib/bento/resources/subscribers.rb', line 124 def @navigation_url end |
permalink #unsubscribed_at ⇒ Object (readonly)
Returns the value of attribute unsubscribed_at.
124 125 126 |
# File 'lib/bento/resources/subscribers.rb', line 124 def unsubscribed_at @unsubscribed_at end |
permalink #uuid ⇒ Object (readonly)
Returns the value of attribute uuid.
124 125 126 |
# File 'lib/bento/resources/subscribers.rb', line 124 def uuid @uuid end |