Class: Tarpon::Entity::Subscriber
- Inherits:
-
Object
- Object
- Tarpon::Entity::Subscriber
- Defined in:
- lib/tarpon/entity/subscriber.rb
Instance Attribute Summary collapse
-
#entitlements ⇒ Object
readonly
Returns the value of attribute entitlements.
-
#raw ⇒ Object
readonly
Returns the value of attribute raw.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Subscriber
constructor
A new instance of Subscriber.
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
#entitlements ⇒ Object (readonly)
Returns the value of attribute entitlements.
6 7 8 |
# File 'lib/tarpon/entity/subscriber.rb', line 6 def entitlements @entitlements end |
#raw ⇒ Object (readonly)
Returns the value of attribute raw.
6 7 8 |
# File 'lib/tarpon/entity/subscriber.rb', line 6 def raw @raw end |