Method: Bento::Subscriber#initialize
- Defined in:
- lib/bento/resources/subscribers.rb
#initialize(data) ⇒ 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'] = attributes['navigation_url'] end |