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

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

Overview

The location for geotagged posts.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Location

Returns a new instance of Location.



992
993
994
# File 'generated/google/apis/blogger_v2/classes.rb', line 992

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

Instance Attribute Details

#latFloat

Location's latitude. Corresponds to the JSON property lat

Returns:

  • (Float)


975
976
977
# File 'generated/google/apis/blogger_v2/classes.rb', line 975

def lat
  @lat
end

#lngFloat

Location's longitude. Corresponds to the JSON property lng

Returns:

  • (Float)


980
981
982
# File 'generated/google/apis/blogger_v2/classes.rb', line 980

def lng
  @lng
end

#nameString

Location name. Corresponds to the JSON property name

Returns:

  • (String)


985
986
987
# File 'generated/google/apis/blogger_v2/classes.rb', line 985

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)


990
991
992
# File 'generated/google/apis/blogger_v2/classes.rb', line 990

def span
  @span
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



997
998
999
1000
1001
1002
# File 'generated/google/apis/blogger_v2/classes.rb', line 997

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