Class: Google::Apis::BloggerV2::Post

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, Replies

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) ⇒ Post


671
672
673
# File 'generated/google/apis/blogger_v2/classes.rb', line 671

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

Instance Attribute Details

#authorGoogle::Apis::BloggerV2::Post::Author

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


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

def author
  @author
end

#blogGoogle::Apis::BloggerV2::Post::Blog

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


619
620
621
# File 'generated/google/apis/blogger_v2/classes.rb', line 619

def blog
  @blog
end

#contentString

The content of the Post. May contain HTML markup. Corresponds to the JSON property content


624
625
626
# File 'generated/google/apis/blogger_v2/classes.rb', line 624

def content
  @content
end

#idFixnum

The identifier of this Post. Corresponds to the JSON property id


629
630
631
# File 'generated/google/apis/blogger_v2/classes.rb', line 629

def id
  @id
end

#kindString

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


634
635
636
# File 'generated/google/apis/blogger_v2/classes.rb', line 634

def kind
  @kind
end

#labelsArray<String>

The list of labels this Post was tagged with. Corresponds to the JSON property labels


639
640
641
# File 'generated/google/apis/blogger_v2/classes.rb', line 639

def labels
  @labels
end

#publishedDateTime

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


644
645
646
# File 'generated/google/apis/blogger_v2/classes.rb', line 644

def published
  @published
end

#repliesGoogle::Apis::BloggerV2::Post::Replies

The container of comments on this Post. Corresponds to the JSON property replies


649
650
651
# File 'generated/google/apis/blogger_v2/classes.rb', line 649

def replies
  @replies
end

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


654
655
656
# File 'generated/google/apis/blogger_v2/classes.rb', line 654

def self_link
  @self_link
end

#titleString

The title of the Post. Corresponds to the JSON property title


659
660
661
# File 'generated/google/apis/blogger_v2/classes.rb', line 659

def title
  @title
end

#updatedDateTime

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


664
665
666
# File 'generated/google/apis/blogger_v2/classes.rb', line 664

def updated
  @updated
end

#urlString

The URL where this Post is displayed. Corresponds to the JSON property url


669
670
671
# File 'generated/google/apis/blogger_v2/classes.rb', line 669

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


676
677
678
679
680
681
682
683
684
685
686
687
688
689
# File 'generated/google/apis/blogger_v2/classes.rb', line 676

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)
  @labels = args[:labels] if args.key?(:labels)
  @published = args[:published] if args.key?(:published)
  @replies = args[:replies] if args.key?(:replies)
  @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