Class: Google::Apis::BloggerV2::Post
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV2::Post
- 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, Replies
Instance Attribute Summary collapse
-
#author ⇒ Google::Apis::BloggerV2::Post::Author
The author of this Post.
-
#blog ⇒ Google::Apis::BloggerV2::Post::Blog
Data about the blog containing this Post.
-
#content ⇒ String
The content of the Post.
-
#id ⇒ Fixnum
The identifier of this Post.
-
#kind ⇒ String
The kind of this entity.
-
#labels ⇒ Array<String>
The list of labels this Post was tagged with.
-
#published ⇒ DateTime
RFC 3339 date-time when this Post was published.
-
#replies ⇒ Google::Apis::BloggerV2::Post::Replies
The container of comments on this Post.
-
#self_link ⇒ String
The API REST URL to fetch this resource from.
-
#title ⇒ String
The title of the Post.
-
#updated ⇒ DateTime
RFC 3339 date-time when this Post was last updated.
-
#url ⇒ String
The URL where this Post is displayed.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Post
constructor
A new instance of Post.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Post
Returns a new instance of Post
671 672 673 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 671 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author ⇒ Google::Apis::BloggerV2::Post::Author
The author of this Post.
Corresponds to the JSON property author
614 615 616 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 614 def @author end |
#blog ⇒ Google::Apis::BloggerV2::Post::Blog
Data about the blog containing this Post.
Corresponds to the JSON property blog
619 620 621 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 619 def blog @blog end |
#content ⇒ String
The content of the Post. May contain HTML markup.
Corresponds to the JSON property content
624 625 626 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 624 def content @content end |
#id ⇒ Fixnum
The identifier of this Post.
Corresponds to the JSON property id
629 630 631 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 629 def id @id end |
#kind ⇒ String
The kind of this entity. Always blogger#post
Corresponds to the JSON property kind
634 635 636 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 634 def kind @kind end |
#labels ⇒ Array<String>
The list of labels this Post was tagged with.
Corresponds to the JSON property labels
639 640 641 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 639 def labels @labels end |
#published ⇒ DateTime
RFC 3339 date-time when this Post was published.
Corresponds to the JSON property published
644 645 646 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 644 def published @published end |
#replies ⇒ Google::Apis::BloggerV2::Post::Replies
The container of comments on this Post.
Corresponds to the JSON property replies
649 650 651 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 649 def replies @replies end |
#self_link ⇒ String
The API REST URL to fetch this resource from.
Corresponds to the JSON property selfLink
654 655 656 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 654 def self_link @self_link end |
#title ⇒ String
The title of the Post.
Corresponds to the JSON property title
659 660 661 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 659 def title @title end |
#updated ⇒ DateTime
RFC 3339 date-time when this Post was last updated.
Corresponds to the JSON property updated
664 665 666 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 664 def updated @updated end |
#url ⇒ String
The URL where this Post is displayed.
Corresponds to the JSON property url
669 670 671 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 669 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
676 677 678 679 680 681 682 683 684 685 686 687 688 689 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 676 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) @kind = args[:kind] if args.key?(:kind) @labels = args[:labels] if args.key?(:labels) @published = args[:published] if args.key?(:published) @replies = args[:replies] if args.key?(:replies) @self_link = args[:self_link] if args.key?(:self_link) @title = args[:title] if args.key?(:title) @updated = args[:updated] if args.key?(:updated) @url = args[:url] if args.key?(:url) end |