Class: Google::Apis::AppsactivityV1::Photo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appsactivity_v1/classes.rb,
generated/google/apis/appsactivity_v1/representations.rb,
generated/google/apis/appsactivity_v1/representations.rb

Overview

Photo information for a user.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Photo

Returns a new instance of Photo.


298
299
300
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 298

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

Instance Attribute Details

#urlString

The URL of the photo. Corresponds to the JSON property url

Returns:

  • (String)

296
297
298
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 296

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


303
304
305
# File 'generated/google/apis/appsactivity_v1/classes.rb', line 303

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