Class: Google::Apis::BloggerV2::Comment
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV2::Comment
- 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: Author, Blog, InReplyTo, Post
Instance Attribute Summary collapse
-
#author ⇒ Google::Apis::BloggerV2::Comment::Author
The author of this Comment.
-
#blog ⇒ Google::Apis::BloggerV2::Comment::Blog
Data about the blog containing this comment.
-
#content ⇒ String
The actual content of the comment.
-
#id ⇒ Fixnum
The identifier for this resource.
-
#in_reply_to ⇒ Google::Apis::BloggerV2::Comment::InReplyTo
Data about the comment this is in reply to.
-
#kind ⇒ String
The kind of this entry.
-
#post ⇒ Google::Apis::BloggerV2::Comment::Post
Data about the post containing this comment.
-
#published ⇒ DateTime
RFC 3339 date-time when this comment was published.
-
#self_link ⇒ String
The API REST URL to fetch this resource from.
-
#updated ⇒ DateTime
RFC 3339 date-time when this comment was last updated.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Comment
constructor
A new instance of Comment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Comment
Returns a new instance of Comment
264 265 266 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 264 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author ⇒ Google::Apis::BloggerV2::Comment::Author
The author of this Comment.
Corresponds to the JSON property author
217 218 219 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 217 def @author end |
#blog ⇒ Google::Apis::BloggerV2::Comment::Blog
Data about the blog containing this comment.
Corresponds to the JSON property blog
222 223 224 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 222 def blog @blog end |
#content ⇒ String
The actual content of the comment. May include HTML markup.
Corresponds to the JSON property content
227 228 229 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 227 def content @content end |
#id ⇒ Fixnum
The identifier for this resource.
Corresponds to the JSON property id
232 233 234 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 232 def id @id end |
#in_reply_to ⇒ Google::Apis::BloggerV2::Comment::InReplyTo
Data about the comment this is in reply to.
Corresponds to the JSON property inReplyTo
237 238 239 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 237 def in_reply_to @in_reply_to end |
#kind ⇒ String
The kind of this entry. Always blogger#comment
Corresponds to the JSON property kind
242 243 244 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 242 def kind @kind end |
#post ⇒ Google::Apis::BloggerV2::Comment::Post
Data about the post containing this comment.
Corresponds to the JSON property post
247 248 249 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 247 def post @post end |
#published ⇒ DateTime
RFC 3339 date-time when this comment was published.
Corresponds to the JSON property published
252 253 254 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 252 def published @published end |
#self_link ⇒ String
The API REST URL to fetch this resource from.
Corresponds to the JSON property selfLink
257 258 259 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 257 def self_link @self_link end |
#updated ⇒ DateTime
RFC 3339 date-time when this comment was last updated.
Corresponds to the JSON property updated
262 263 264 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 262 def updated @updated end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
269 270 271 272 273 274 275 276 277 278 279 280 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 269 def update!(**args) @author = args[:author] if args.key?(:author) @blog = args[:blog] if args.key?(:blog) @content = args[:content] if args.key?(:content) @id = args[:id] if args.key?(:id) @in_reply_to = args[:in_reply_to] if args.key?(:in_reply_to) @kind = args[:kind] if args.key?(:kind) @post = args[:post] if args.key?(:post) @published = args[:published] if args.key?(:published) @self_link = args[:self_link] if args.key?(:self_link) @updated = args[:updated] if args.key?(:updated) end |