Class: Bento::Subscriber

Inherits:
Object
  • Object
show all
Defined in:
lib/bento/resources/subscribers.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data) ⇒ Subscriber

Returns a new instance of Subscriber.

[View source]

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

#cached_tag_idsObject (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

#emailObject (readonly)

Returns the value of attribute email.


124
125
126
# File 'lib/bento/resources/subscribers.rb', line 124

def email
  @email
end

#fieldsObject (readonly)

Returns the value of attribute fields.


124
125
126
# File 'lib/bento/resources/subscribers.rb', line 124

def fields
  @fields
end

#idObject (readonly)

Returns the value of attribute id.


124
125
126
# File 'lib/bento/resources/subscribers.rb', line 124

def id
  @id
end

Returns the value of attribute navigation_url.


124
125
126
# File 'lib/bento/resources/subscribers.rb', line 124

def navigation_url
  @navigation_url
end

#unsubscribed_atObject (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

#uuidObject (readonly)

Returns the value of attribute uuid.


124
125
126
# File 'lib/bento/resources/subscribers.rb', line 124

def uuid
  @uuid
end