Class: Tarpon::Entity::Subscriber

Inherits:
Object
  • Object
show all
Defined in:
lib/tarpon/entity/subscriber.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Subscriber

Returns a new instance of Subscriber.



8
9
10
11
# File 'lib/tarpon/entity/subscriber.rb', line 8

def initialize(attributes = {})
  @raw          = attributes
  @entitlements = EntitlementList.new(attributes[:entitlements])
end

Instance Attribute Details

#entitlementsObject (readonly)

Returns the value of attribute entitlements.



6
7
8
# File 'lib/tarpon/entity/subscriber.rb', line 6

def entitlements
  @entitlements
end

#rawObject (readonly)

Returns the value of attribute raw.



6
7
8
# File 'lib/tarpon/entity/subscriber.rb', line 6

def raw
  @raw
end