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.
127 128 129 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 127 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
120 121 122 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 120 def entitlements @entitlements end |
#name ⇒ String
Output only. The resource name of the singleton.
Corresponds to the JSON property name
125 126 127 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 125 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
132 133 134 135 |
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 132 def update!(**args) @entitlements = args[:entitlements] if args.key?(:entitlements) @name = args[:name] if args.key?(:name) end |