Class: Google::Apis::BloggerV3::User

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

Defined Under Namespace

Classes: Blogs, Locale

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) ⇒ User

Returns a new instance of User



1285
1286
1287
# File 'generated/google/apis/blogger_v3/classes.rb', line 1285

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

Instance Attribute Details

#aboutString

Profile summary information. Corresponds to the JSON property about

Returns:

  • (String)


1243
1244
1245
# File 'generated/google/apis/blogger_v3/classes.rb', line 1243

def about
  @about
end

#blogsGoogle::Apis::BloggerV3::User::Blogs

The container of blogs for this user. Corresponds to the JSON property blogs



1248
1249
1250
# File 'generated/google/apis/blogger_v3/classes.rb', line 1248

def blogs
  @blogs
end

#createdDateTime

The timestamp of when this profile was created, in seconds since epoch. Corresponds to the JSON property created

Returns:

  • (DateTime)


1253
1254
1255
# File 'generated/google/apis/blogger_v3/classes.rb', line 1253

def created
  @created
end

#display_nameString

The display name. Corresponds to the JSON property displayName

Returns:

  • (String)


1258
1259
1260
# File 'generated/google/apis/blogger_v3/classes.rb', line 1258

def display_name
  @display_name
end

#idString

The identifier for this User. Corresponds to the JSON property id

Returns:

  • (String)


1263
1264
1265
# File 'generated/google/apis/blogger_v3/classes.rb', line 1263

def id
  @id
end

#kindString

The kind of this entity. Always blogger#user Corresponds to the JSON property kind

Returns:

  • (String)


1268
1269
1270
# File 'generated/google/apis/blogger_v3/classes.rb', line 1268

def kind
  @kind
end

#localeGoogle::Apis::BloggerV3::User::Locale

This user's locale Corresponds to the JSON property locale



1273
1274
1275
# File 'generated/google/apis/blogger_v3/classes.rb', line 1273

def locale
  @locale
end

The API REST URL to fetch this resource from. Corresponds to the JSON property selfLink

Returns:

  • (String)


1278
1279
1280
# File 'generated/google/apis/blogger_v3/classes.rb', line 1278

def self_link
  @self_link
end

#urlString

The user's profile page. Corresponds to the JSON property url

Returns:

  • (String)


1283
1284
1285
# File 'generated/google/apis/blogger_v3/classes.rb', line 1283

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
# File 'generated/google/apis/blogger_v3/classes.rb', line 1290

def update!(**args)
  @about = args[:about] if args.key?(:about)
  @blogs = args[:blogs] if args.key?(:blogs)
  @created = args[:created] if args.key?(:created)
  @display_name = args[:display_name] if args.key?(:display_name)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @locale = args[:locale] if args.key?(:locale)
  @self_link = args[:self_link] if args.key?(:self_link)
  @url = args[:url] if args.key?(:url)
end