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.
144 145 146 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 144 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
137 138 139 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 137 def entitlements @entitlements end |
#name ⇒ String
Output only. The resource name of the singleton.
Corresponds to the JSON property name
142 143 144 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 142 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
149 150 151 152 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 149 def update!(**args) @entitlements = args[:entitlements] if args.key?(:entitlements) @name = args[:name] if args.key?(:name) end |