Class: Google::Apis::ReaderrevenuesubscriptionlinkingV1::ReaderEntitlements

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#entitlementsArray<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

#nameString

Output only. The resource name of the singleton. Corresponds to the JSON property name

Returns:

  • (String)


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