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

Constructor Details

#initialize(**args) ⇒ Location

Returns a new instance of Location.



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

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

Instance Attribute Details

#latFloat

Location's latitude. Corresponds to the JSON property lat

Returns:

  • (Float)


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

def lat
  @lat
end

#lngFloat

Location's longitude. Corresponds to the JSON property lng

Returns:

  • (Float)


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

def lng
  @lng
end

#nameString

Location name. Corresponds to the JSON property name

Returns:

  • (String)


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

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)


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

def span
  @span
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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