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.



124
125
126
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 124

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



117
118
119
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 117

def entitlements
  @entitlements
end

#nameString

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

Returns:

  • (String)


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