Class: Google::Apis::ReaderrevenuesubscriptionlinkingV1::Reader

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 reader of a publication.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Reader

Returns a new instance of Reader.



99
100
101
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 99

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. Time the publication reader was created and associated with a Google user. Corresponds to the JSON property createTime

Returns:

  • (String)


91
92
93
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 91

def create_time
  @create_time
end

#nameString

Output only. The resource name of the reader. The last part of ppid in the resource name is the publisher provided id. Corresponds to the JSON property name

Returns:

  • (String)


97
98
99
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 97

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



104
105
106
107
# File 'lib/google/apis/readerrevenuesubscriptionlinking_v1/classes.rb', line 104

def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @name = args[:name] if args.key?(:name)
end