Class: Google::Apis::BloggerV2::Blog

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



84
85
86
# File 'generated/google/apis/blogger_v2/classes.rb', line 84

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

Instance Attribute Details

#descriptionString

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

Returns:

  • (String)


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

def description
  @description
end

#idFixnum

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

Returns:

  • (Fixnum)


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

def id
  @id
end

#kindString

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

Returns:

  • (String)


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

def kind
  @kind
end

#localeGoogle::Apis::BloggerV2::Blog::Locale

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



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

def locale
  @locale
end

#nameString

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

Returns:

  • (String)


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

def name
  @name
end

#pagesGoogle::Apis::BloggerV2::Blog::Pages

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



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

def pages
  @pages
end

#postsGoogle::Apis::BloggerV2::Blog::Posts

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



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

def posts
  @posts
end

#publishedDateTime

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

Returns:

  • (DateTime)


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

def published
  @published
end

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

Returns:

  • (String)


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

def self_link
  @self_link
end

#updatedDateTime

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

Returns:

  • (DateTime)


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

def updated
  @updated
end

#urlString

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

Returns:

  • (String)


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

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'generated/google/apis/blogger_v2/classes.rb', line 89

def update!(**args)
  @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)
  @updated = args[:updated] if args.key?(:updated)
  @url = args[:url] if args.key?(:url)
end