Class: Google::Apis::BloggerV3::Page
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV3::Page
- 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
Defined Under Namespace
Instance Attribute Summary collapse
-
#author ⇒ Google::Apis::BloggerV3::Page::Author
The author of this Page.
-
#blog ⇒ Google::Apis::BloggerV3::Page::Blog
Data about the blog containing this Page.
-
#content ⇒ String
The body content of this Page, in HTML.
-
#etag ⇒ String
Etag of the resource.
-
#id ⇒ String
The identifier for this resource.
-
#kind ⇒ String
The kind of this entity.
-
#published ⇒ DateTime
RFC 3339 date-time when this Page was published.
-
#self_link ⇒ String
The API REST URL to fetch this resource from.
-
#status ⇒ String
The status of the page for admin resources (either LIVE or DRAFT).
-
#title ⇒ String
The title of this entity.
-
#updated ⇒ DateTime
RFC 3339 date-time when this Page was last updated.
-
#url ⇒ String
The URL that this Page is displayed at.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Page
constructor
A new instance of Page.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Page
Returns a new instance of Page.
615 616 617 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 615 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author ⇒ Google::Apis::BloggerV3::Page::Author
The author of this Page.
Corresponds to the JSON property author
557 558 559 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 557 def @author end |
#blog ⇒ Google::Apis::BloggerV3::Page::Blog
Data about the blog containing this Page.
Corresponds to the JSON property blog
562 563 564 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 562 def blog @blog end |
#content ⇒ String
The body content of this Page, in HTML.
Corresponds to the JSON property content
567 568 569 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 567 def content @content end |
#etag ⇒ String
Etag of the resource.
Corresponds to the JSON property etag
572 573 574 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 572 def etag @etag end |
#id ⇒ String
The identifier for this resource.
Corresponds to the JSON property id
577 578 579 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 577 def id @id end |
#kind ⇒ String
The kind of this entity. Always blogger#page
Corresponds to the JSON property kind
582 583 584 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 582 def kind @kind end |
#published ⇒ DateTime
RFC 3339 date-time when this Page was published.
Corresponds to the JSON property published
587 588 589 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 587 def published @published end |
#self_link ⇒ String
The API REST URL to fetch this resource from.
Corresponds to the JSON property selfLink
592 593 594 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 592 def self_link @self_link end |
#status ⇒ String
The status of the page for admin resources (either LIVE or DRAFT).
Corresponds to the JSON property status
597 598 599 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 597 def status @status end |
#title ⇒ String
The title of this entity. This is the name displayed in the Admin user
interface.
Corresponds to the JSON property title
603 604 605 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 603 def title @title end |
#updated ⇒ DateTime
RFC 3339 date-time when this Page was last updated.
Corresponds to the JSON property updated
608 609 610 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 608 def updated @updated end |
#url ⇒ String
The URL that this Page is displayed at.
Corresponds to the JSON property url
613 614 615 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 613 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
620 621 622 623 624 625 626 627 628 629 630 631 632 633 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 620 def update!(**args) @author = args[:author] if args.key?(:author) @blog = args[:blog] if args.key?(:blog) @content = args[:content] if args.key?(:content) @etag = args[:etag] if args.key?(:etag) @id = args[:id] if args.key?(:id) @kind = args[:kind] if args.key?(:kind) @published = args[:published] if args.key?(:published) @self_link = args[:self_link] if args.key?(:self_link) @status = args[:status] if args.key?(:status) @title = args[:title] if args.key?(:title) @updated = args[:updated] if args.key?(:updated) @url = args[:url] if args.key?(:url) end |