Class: Google::Apis::BloggerV3::Post

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/blogger_v3/classes.rb,
lib/google/apis/blogger_v3/representations.rb,
lib/google/apis/blogger_v3/representations.rb

Defined Under Namespace

Classes: Author, Blog, Image, Location, Replies

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Post

Returns a new instance of Post.



914
915
916
# File 'lib/google/apis/blogger_v3/classes.rb', line 914

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

Instance Attribute Details

#authorGoogle::Apis::BloggerV3::Post::Author

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



817
818
819
# File 'lib/google/apis/blogger_v3/classes.rb', line 817

def author
  @author
end

#blogGoogle::Apis::BloggerV3::Post::Blog

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



822
823
824
# File 'lib/google/apis/blogger_v3/classes.rb', line 822

def blog
  @blog
end

#contentString

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

Returns:

  • (String)


827
828
829
# File 'lib/google/apis/blogger_v3/classes.rb', line 827

def content
  @content
end

#custom_meta_dataString

The JSON meta-data for the Post. Corresponds to the JSON property customMetaData

Returns:

  • (String)


832
833
834
# File 'lib/google/apis/blogger_v3/classes.rb', line 832

def 
  @custom_meta_data
end

#etagString

Etag of the resource. Corresponds to the JSON property etag

Returns:

  • (String)


837
838
839
# File 'lib/google/apis/blogger_v3/classes.rb', line 837

def etag
  @etag
end

#idString

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

Returns:

  • (String)


842
843
844
# File 'lib/google/apis/blogger_v3/classes.rb', line 842

def id
  @id
end

#imagesArray<Google::Apis::BloggerV3::Post::Image>

Display image for the Post. Corresponds to the JSON property images



847
848
849
# File 'lib/google/apis/blogger_v3/classes.rb', line 847

def images
  @images
end

#kindString

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

Returns:

  • (String)


852
853
854
# File 'lib/google/apis/blogger_v3/classes.rb', line 852

def kind
  @kind
end

#labelsArray<String>

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

Returns:

  • (Array<String>)


857
858
859
# File 'lib/google/apis/blogger_v3/classes.rb', line 857

def labels
  @labels
end

#locationGoogle::Apis::BloggerV3::Post::Location

The location for geotagged posts. Corresponds to the JSON property location



862
863
864
# File 'lib/google/apis/blogger_v3/classes.rb', line 862

def location
  @location
end

#publishedString

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

Returns:

  • (String)


867
868
869
# File 'lib/google/apis/blogger_v3/classes.rb', line 867

def published
  @published
end

#reader_commentsString

Comment control and display setting for readers of this post. Corresponds to the JSON property readerComments

Returns:

  • (String)


872
873
874
# File 'lib/google/apis/blogger_v3/classes.rb', line 872

def reader_comments
  @reader_comments
end

#repliesGoogle::Apis::BloggerV3::Post::Replies

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



877
878
879
# File 'lib/google/apis/blogger_v3/classes.rb', line 877

def replies
  @replies
end

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

Returns:

  • (String)


882
883
884
# File 'lib/google/apis/blogger_v3/classes.rb', line 882

def self_link
  @self_link
end

#statusString

Status of the post. Only set for admin-level requests. Corresponds to the JSON property status

Returns:

  • (String)


887
888
889
# File 'lib/google/apis/blogger_v3/classes.rb', line 887

def status
  @status
end

#titleString

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

Returns:

  • (String)


892
893
894
# File 'lib/google/apis/blogger_v3/classes.rb', line 892

def title
  @title
end

The title link URL, similar to atom's related link. Corresponds to the JSON property titleLink

Returns:

  • (String)


897
898
899
# File 'lib/google/apis/blogger_v3/classes.rb', line 897

def title_link
  @title_link
end

#trashedString

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

Returns:

  • (String)


902
903
904
# File 'lib/google/apis/blogger_v3/classes.rb', line 902

def trashed
  @trashed
end

#updatedString

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

Returns:

  • (String)


907
908
909
# File 'lib/google/apis/blogger_v3/classes.rb', line 907

def updated
  @updated
end

#urlString

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

Returns:

  • (String)


912
913
914
# File 'lib/google/apis/blogger_v3/classes.rb', line 912

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
# File 'lib/google/apis/blogger_v3/classes.rb', line 919

def update!(**args)
  @author = args[:author] if args.key?(:author)
  @blog = args[:blog] if args.key?(:blog)
  @content = args[:content] if args.key?(:content)
  @custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data)
  @etag = args[:etag] if args.key?(:etag)
  @id = args[:id] if args.key?(:id)
  @images = args[:images] if args.key?(:images)
  @kind = args[:kind] if args.key?(:kind)
  @labels = args[:labels] if args.key?(:labels)
  @location = args[:location] if args.key?(:location)
  @published = args[:published] if args.key?(:published)
  @reader_comments = args[:reader_comments] if args.key?(:reader_comments)
  @replies = args[:replies] if args.key?(:replies)
  @self_link = args[:self_link] if args.key?(:self_link)
  @status = args[:status] if args.key?(:status)
  @title = args[:title] if args.key?(:title)
  @title_link = args[:title_link] if args.key?(:title_link)
  @trashed = args[:trashed] if args.key?(:trashed)
  @updated = args[:updated] if args.key?(:updated)
  @url = args[:url] if args.key?(:url)
end