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

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

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.



1060
1061
1062
# File 'lib/google/apis/blogger_v3/classes.rb', line 1060

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

Instance Attribute Details

#latFloat

Location's latitude. Corresponds to the JSON property lat

Returns:

  • (Float)


1043
1044
1045
# File 'lib/google/apis/blogger_v3/classes.rb', line 1043

def lat
  @lat
end

#lngFloat

Location's longitude. Corresponds to the JSON property lng

Returns:

  • (Float)


1048
1049
1050
# File 'lib/google/apis/blogger_v3/classes.rb', line 1048

def lng
  @lng
end

#nameString

Location name. Corresponds to the JSON property name

Returns:

  • (String)


1053
1054
1055
# File 'lib/google/apis/blogger_v3/classes.rb', line 1053

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)


1058
1059
1060
# File 'lib/google/apis/blogger_v3/classes.rb', line 1058

def span
  @span
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1065
1066
1067
1068
1069
1070
# File 'lib/google/apis/blogger_v3/classes.rb', line 1065

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