Class: Google::Apis::BloggerV2::Page

Inherits:
Object
  • Object
show all
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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Page


488
489
490
# File 'generated/google/apis/blogger_v2/classes.rb', line 488

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#authorGoogle::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
  @author
end

#blogGoogle::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

#contentString

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

#idFixnum

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

#kindString

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

#publishedDateTime

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

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

#titleString

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

#updatedDateTime

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

#urlString

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