Class: Google::Apis::BloggerV3::Page
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV3::Page
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/blogger_v3/classes.rb,
lib/google/apis/blogger_v3/representations.rb,
lib/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 ⇒ String
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.
-
#trashed ⇒ String
RFC 3339 date-time when this Page was trashed.
-
#updated ⇒ String
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.
Constructor Details
#initialize(**args) ⇒ Page
Returns a new instance of Page.
620 621 622 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 620 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 'lib/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 'lib/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 'lib/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 'lib/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 'lib/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 'lib/google/apis/blogger_v3/classes.rb', line 582 def kind @kind end |
#published ⇒ String
RFC 3339 date-time when this Page was published.
Corresponds to the JSON property published
587 588 589 |
# File 'lib/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 'lib/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 'lib/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 'lib/google/apis/blogger_v3/classes.rb', line 603 def title @title end |
#trashed ⇒ String
RFC 3339 date-time when this Page was trashed.
Corresponds to the JSON property trashed
608 609 610 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 608 def trashed @trashed end |
#updated ⇒ String
RFC 3339 date-time when this Page was last updated.
Corresponds to the JSON property updated
613 614 615 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 613 def updated @updated end |
#url ⇒ String
The URL that this Page is displayed at.
Corresponds to the JSON property url
618 619 620 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 618 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 625 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) @trashed = args[:trashed] if args.key?(:trashed) @updated = args[:updated] if args.key?(:updated) @url = args[:url] if args.key?(:url) end |