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

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

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

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

#contentString

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

Returns:

  • (String)


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

def content
  @content
end

#etagString

Etag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


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

def etag
  @etag
end

#idString

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

Returns:

  • (String)


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

def id
  @id
end

#kindString

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

Returns:

  • (String)


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

def kind
  @kind
end

#publishedString

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

Returns:

  • (String)


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

def published
  @published
end

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

Returns:

  • (String)


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

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)


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

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)


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

def title
  @title
end

#updatedString

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

Returns:

  • (String)


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

def updated
  @updated
end

#urlString

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

Returns:

  • (String)


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