Class: Google::Apis::BloggerV3::PostPerUserInfo

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

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

Returns a new instance of PostPerUserInfo.


1166
1167
1168
# File 'generated/google/apis/blogger_v3/classes.rb', line 1166

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

Instance Attribute Details

#blog_idString

ID of the Blog that the post resource belongs to. Corresponds to the JSON property blogId

Returns:

  • (String)

1143
1144
1145
# File 'generated/google/apis/blogger_v3/classes.rb', line 1143

def blog_id
  @blog_id
end

#has_edit_accessBoolean Also known as: has_edit_access?

True if the user has Author level access to the post. Corresponds to the JSON property hasEditAccess

Returns:

  • (Boolean)

1148
1149
1150
# File 'generated/google/apis/blogger_v3/classes.rb', line 1148

def has_edit_access
  @has_edit_access
end

#kindString

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

Returns:

  • (String)

1154
1155
1156
# File 'generated/google/apis/blogger_v3/classes.rb', line 1154

def kind
  @kind
end

#post_idString

ID of the Post resource. Corresponds to the JSON property postId

Returns:

  • (String)

1159
1160
1161
# File 'generated/google/apis/blogger_v3/classes.rb', line 1159

def post_id
  @post_id
end

#user_idString

ID of the User. Corresponds to the JSON property userId

Returns:

  • (String)

1164
1165
1166
# File 'generated/google/apis/blogger_v3/classes.rb', line 1164

def user_id
  @user_id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


1171
1172
1173
1174
1175
1176
1177
# File 'generated/google/apis/blogger_v3/classes.rb', line 1171

def update!(**args)
  @blog_id = args[:blog_id] if args.key?(:blog_id)
  @has_edit_access = args[:has_edit_access] if args.key?(:has_edit_access)
  @kind = args[:kind] if args.key?(:kind)
  @post_id = args[:post_id] if args.key?(:post_id)
  @user_id = args[:user_id] if args.key?(:user_id)
end