Class: Google::Apis::BloggerV2::User

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/blogger_v2/classes.rb,
generated/google/apis/blogger_v2/representations.rb,
generated/google/apis/blogger_v2/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


878
879
880
# File 'generated/google/apis/blogger_v2/classes.rb', line 878

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

Instance Attribute Details

#aboutString

Profile summary information. Corresponds to the JSON property about


836
837
838
# File 'generated/google/apis/blogger_v2/classes.rb', line 836

def about
  @about
end

#blogsGoogle::Apis::BloggerV2::User::Blogs

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


841
842
843
# File 'generated/google/apis/blogger_v2/classes.rb', line 841

def blogs
  @blogs
end

#createdDateTime

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


846
847
848
# File 'generated/google/apis/blogger_v2/classes.rb', line 846

def created
  @created
end

#display_nameString

The display name. Corresponds to the JSON property displayName


851
852
853
# File 'generated/google/apis/blogger_v2/classes.rb', line 851

def display_name
  @display_name
end

#idString

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


856
857
858
# File 'generated/google/apis/blogger_v2/classes.rb', line 856

def id
  @id
end

#kindString

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


861
862
863
# File 'generated/google/apis/blogger_v2/classes.rb', line 861

def kind
  @kind
end

#localeGoogle::Apis::BloggerV2::User::Locale

This user's locale Corresponds to the JSON property locale


866
867
868
# File 'generated/google/apis/blogger_v2/classes.rb', line 866

def locale
  @locale
end

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


871
872
873
# File 'generated/google/apis/blogger_v2/classes.rb', line 871

def self_link
  @self_link
end

#urlString

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


876
877
878
# File 'generated/google/apis/blogger_v2/classes.rb', line 876

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


883
884
885
886
887
888
889
890
891
892
893
# File 'generated/google/apis/blogger_v2/classes.rb', line 883

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