Class: Google::Apis::ReaderrevenuesubscriptionlinkingV1::ReaderEntitlements
- Inherits:
-
Object
- Object
- Google::Apis::ReaderrevenuesubscriptionlinkingV1::ReaderEntitlements
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb,
lib/google/apis/readerrevenuesubscriptionlinking_v1/representations.rb,
lib/google/apis/readerrevenuesubscriptionlinking_v1/representations.rb
Overview
A singleton containing all of a reader's entitlements for a publication.
Instance Attribute Summary collapse
-
#entitlements ⇒ Array<Google::Apis::ReaderrevenuesubscriptionlinkingV1::Entitlement>
All of the entitlements for a publication reader.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReaderEntitlements
constructor
A new instance of ReaderEntitlements.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReaderEntitlements
Returns a new instance of ReaderEntitlements.
124 125 126 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 124 def initialize(**args) update!(**args) end |
Instance Attribute Details
#entitlements ⇒ Array<Google::Apis::ReaderrevenuesubscriptionlinkingV1::Entitlement>
All of the entitlements for a publication reader.
Corresponds to the JSON property entitlements
117 118 119 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 117 def entitlements @entitlements end |
#name ⇒ String
Output only. The resource name of the singleton.
Corresponds to the JSON property name
122 123 124 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 122 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
129 130 131 132 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 129 def update!(**args) @entitlements = args[:entitlements] if args.key?(:entitlements) @name = args[:name] if args.key?(:name) end |