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

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

Overview

The location for geotagged 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) ⇒ Location

Returns a new instance of Location.



1049
1050
1051
# File 'generated/google/apis/blogger_v3/classes.rb', line 1049

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

Instance Attribute Details

#latFloat

Location's latitude. Corresponds to the JSON property lat

Returns:

  • (Float)


1032
1033
1034
# File 'generated/google/apis/blogger_v3/classes.rb', line 1032

def lat
  @lat
end

#lngFloat

Location's longitude. Corresponds to the JSON property lng

Returns:

  • (Float)


1037
1038
1039
# File 'generated/google/apis/blogger_v3/classes.rb', line 1037

def lng
  @lng
end

#nameString

Location name. Corresponds to the JSON property name

Returns:

  • (String)


1042
1043
1044
# File 'generated/google/apis/blogger_v3/classes.rb', line 1042

def name
  @name
end

#spanString

Location's viewport span. Can be used when rendering a map preview. Corresponds to the JSON property span

Returns:

  • (String)


1047
1048
1049
# File 'generated/google/apis/blogger_v3/classes.rb', line 1047

def span
  @span
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1054
1055
1056
1057
1058
1059
# File 'generated/google/apis/blogger_v3/classes.rb', line 1054

def update!(**args)
  @lat = args[:lat] if args.key?(:lat)
  @lng = args[:lng] if args.key?(:lng)
  @name = args[:name] if args.key?(:name)
  @span = args[:span] if args.key?(:span)
end