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

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

Defined Under Namespace

Classes: Blogs, Locale

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ User

Returns a new instance of User.



1303
1304
1305
# File 'lib/google/apis/blogger_v3/classes.rb', line 1303

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

Instance Attribute Details

#aboutString

Profile summary information. Corresponds to the JSON property about

Returns:

  • (String)


1261
1262
1263
# File 'lib/google/apis/blogger_v3/classes.rb', line 1261

def about
  @about
end

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

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



1266
1267
1268
# File 'lib/google/apis/blogger_v3/classes.rb', line 1266

def blogs
  @blogs
end

#createdString

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

Returns:

  • (String)


1271
1272
1273
# File 'lib/google/apis/blogger_v3/classes.rb', line 1271

def created
  @created
end

#display_nameString

The display name. Corresponds to the JSON property displayName

Returns:

  • (String)


1276
1277
1278
# File 'lib/google/apis/blogger_v3/classes.rb', line 1276

def display_name
  @display_name
end

#idString

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

Returns:

  • (String)


1281
1282
1283
# File 'lib/google/apis/blogger_v3/classes.rb', line 1281

def id
  @id
end

#kindString

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

Returns:

  • (String)


1286
1287
1288
# File 'lib/google/apis/blogger_v3/classes.rb', line 1286

def kind
  @kind
end

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

This user's locale Corresponds to the JSON property locale



1291
1292
1293
# File 'lib/google/apis/blogger_v3/classes.rb', line 1291

def locale
  @locale
end

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

Returns:

  • (String)


1296
1297
1298
# File 'lib/google/apis/blogger_v3/classes.rb', line 1296

def self_link
  @self_link
end

#urlString

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

Returns:

  • (String)


1301
1302
1303
# File 'lib/google/apis/blogger_v3/classes.rb', line 1301

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
# File 'lib/google/apis/blogger_v3/classes.rb', line 1308

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