Class: Google::Apis::BloggerV3::Blog

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: Locale, Pages, Posts

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

Returns a new instance of Blog



94
95
96
# File 'generated/google/apis/blogger_v3/classes.rb', line 94

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

Instance Attribute Details

#custom_meta_dataString

The JSON custom meta-data for the Blog Corresponds to the JSON property customMetaData

Returns:

  • (String)


32
33
34
# File 'generated/google/apis/blogger_v3/classes.rb', line 32

def 
  @custom_meta_data
end

#descriptionString

The description of this blog. This is displayed underneath the title. Corresponds to the JSON property description

Returns:

  • (String)


37
38
39
# File 'generated/google/apis/blogger_v3/classes.rb', line 37

def description
  @description
end

#idString

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

Returns:

  • (String)


42
43
44
# File 'generated/google/apis/blogger_v3/classes.rb', line 42

def id
  @id
end

#kindString

The kind of this entry. Always blogger#blog Corresponds to the JSON property kind

Returns:

  • (String)


47
48
49
# File 'generated/google/apis/blogger_v3/classes.rb', line 47

def kind
  @kind
end

#localeGoogle::Apis::BloggerV3::Blog::Locale

The locale this Blog is set to. Corresponds to the JSON property locale



52
53
54
# File 'generated/google/apis/blogger_v3/classes.rb', line 52

def locale
  @locale
end

#nameString

The name of this blog. This is displayed as the title. Corresponds to the JSON property name

Returns:

  • (String)


57
58
59
# File 'generated/google/apis/blogger_v3/classes.rb', line 57

def name
  @name
end

#pagesGoogle::Apis::BloggerV3::Blog::Pages

The container of pages in this blog. Corresponds to the JSON property pages



62
63
64
# File 'generated/google/apis/blogger_v3/classes.rb', line 62

def pages
  @pages
end

#postsGoogle::Apis::BloggerV3::Blog::Posts

The container of posts in this blog. Corresponds to the JSON property posts



67
68
69
# File 'generated/google/apis/blogger_v3/classes.rb', line 67

def posts
  @posts
end

#publishedDateTime

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

Returns:

  • (DateTime)


72
73
74
# File 'generated/google/apis/blogger_v3/classes.rb', line 72

def published
  @published
end

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

Returns:

  • (String)


77
78
79
# File 'generated/google/apis/blogger_v3/classes.rb', line 77

def self_link
  @self_link
end

#statusString

The status of the blog. Corresponds to the JSON property status

Returns:

  • (String)


82
83
84
# File 'generated/google/apis/blogger_v3/classes.rb', line 82

def status
  @status
end

#updatedDateTime

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

Returns:

  • (DateTime)


87
88
89
# File 'generated/google/apis/blogger_v3/classes.rb', line 87

def updated
  @updated
end

#urlString

The URL where this blog is published. Corresponds to the JSON property url

Returns:

  • (String)


92
93
94
# File 'generated/google/apis/blogger_v3/classes.rb', line 92

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
# File 'generated/google/apis/blogger_v3/classes.rb', line 99

def update!(**args)
  @custom_meta_data = args[:custom_meta_data] if args.key?(:custom_meta_data)
  @description = args[:description] if args.key?(:description)
  @id = args[:id] if args.key?(:id)
  @kind = args[:kind] if args.key?(:kind)
  @locale = args[:locale] if args.key?(:locale)
  @name = args[:name] if args.key?(:name)
  @pages = args[:pages] if args.key?(:pages)
  @posts = args[:posts] if args.key?(:posts)
  @published = args[:published] if args.key?(:published)
  @self_link = args[:self_link] if args.key?(:self_link)
  @status = args[:status] if args.key?(:status)
  @updated = args[:updated] if args.key?(:updated)
  @url = args[:url] if args.key?(:url)
end