Class: Google::Apis::BloggerV3::Page

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

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

Returns a new instance of Page.



616
617
618
# File 'generated/google/apis/blogger_v3/classes.rb', line 616

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

Instance Attribute Details

#authorGoogle::Apis::BloggerV3::Page::Author

The author of this Page. Corresponds to the JSON property author



558
559
560
# File 'generated/google/apis/blogger_v3/classes.rb', line 558

def author
  @author
end

#blogGoogle::Apis::BloggerV3::Page::Blog

Data about the blog containing this Page. Corresponds to the JSON property blog



563
564
565
# File 'generated/google/apis/blogger_v3/classes.rb', line 563

def blog
  @blog
end

#contentString

The body content of this Page, in HTML. Corresponds to the JSON property content

Returns:

  • (String)


568
569
570
# File 'generated/google/apis/blogger_v3/classes.rb', line 568

def content
  @content
end

#etagString

Etag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


573
574
575
# File 'generated/google/apis/blogger_v3/classes.rb', line 573

def etag
  @etag
end

#idString

The identifier for this resource. Corresponds to the JSON property id

Returns:

  • (String)


578
579
580
# File 'generated/google/apis/blogger_v3/classes.rb', line 578

def id
  @id
end

#kindString

The kind of this entity. Always blogger#page. Corresponds to the JSON property kind

Returns:

  • (String)


583
584
585
# File 'generated/google/apis/blogger_v3/classes.rb', line 583

def kind
  @kind
end

#publishedString

RFC 3339 date-time when this Page was published. Corresponds to the JSON property published

Returns:

  • (String)


588
589
590
# File 'generated/google/apis/blogger_v3/classes.rb', line 588

def published
  @published
end

The API REST URL to fetch this resource from. Corresponds to the JSON property selfLink

Returns:

  • (String)


593
594
595
# File 'generated/google/apis/blogger_v3/classes.rb', line 593

def self_link
  @self_link
end

#statusString

The status of the page for admin resources (either LIVE or DRAFT). Corresponds to the JSON property status

Returns:

  • (String)


598
599
600
# File 'generated/google/apis/blogger_v3/classes.rb', line 598

def status
  @status
end

#titleString

The title of this entity. This is the name displayed in the Admin user interface. Corresponds to the JSON property title

Returns:

  • (String)


604
605
606
# File 'generated/google/apis/blogger_v3/classes.rb', line 604

def title
  @title
end

#updatedString

RFC 3339 date-time when this Page was last updated. Corresponds to the JSON property updated

Returns:

  • (String)


609
610
611
# File 'generated/google/apis/blogger_v3/classes.rb', line 609

def updated
  @updated
end

#urlString

The URL that this Page is displayed at. Corresponds to the JSON property url

Returns:

  • (String)


614
615
616
# File 'generated/google/apis/blogger_v3/classes.rb', line 614

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



621
622
623
624
625
626
627
628
629
630
631
632
633
634
# File 'generated/google/apis/blogger_v3/classes.rb', line 621

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