Class: Google::Apis::BloggerV2::Page
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV2::Page
- 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
Instance Attribute Summary collapse
-
#author ⇒ Google::Apis::BloggerV2::Page::Author
The author of this Page.
-
#blog ⇒ Google::Apis::BloggerV2::Page::Blog
Data about the blog containing this Page.
-
#content ⇒ String
The body content of this Page, in HTML.
-
#id ⇒ Fixnum
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.
-
#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
488 489 490 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 488 def initialize(**args) update!(**args) end |
Instance Attribute Details
#author ⇒ Google::Apis::BloggerV2::Page::Author
The author of this Page.
Corresponds to the JSON property author
440 441 442 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 440 def @author end |
#blog ⇒ Google::Apis::BloggerV2::Page::Blog
Data about the blog containing this Page.
Corresponds to the JSON property blog
445 446 447 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 445 def blog @blog end |
#content ⇒ String
The body content of this Page, in HTML.
Corresponds to the JSON property content
450 451 452 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 450 def content @content end |
#id ⇒ Fixnum
The identifier for this resource.
Corresponds to the JSON property id
455 456 457 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 455 def id @id end |
#kind ⇒ String
The kind of this entity. Always blogger#page
Corresponds to the JSON property kind
460 461 462 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 460 def kind @kind end |
#published ⇒ DateTime
RFC 3339 date-time when this Page was published.
Corresponds to the JSON property published
465 466 467 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 465 def published @published end |
#self_link ⇒ String
The API REST URL to fetch this resource from.
Corresponds to the JSON property selfLink
470 471 472 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 470 def self_link @self_link end |
#title ⇒ String
The title of this entity. This is the name displayed in the Admin user
interface.
Corresponds to the JSON property title
476 477 478 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 476 def title @title end |
#updated ⇒ DateTime
RFC 3339 date-time when this Page was last updated.
Corresponds to the JSON property updated
481 482 483 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 481 def updated @updated end |
#url ⇒ String
The URL that this Page is displayed at.
Corresponds to the JSON property url
486 487 488 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 486 def url @url end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
493 494 495 496 497 498 499 500 501 502 503 504 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 493 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) @published = args[:published] if args.key?(:published) @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 |