Class: Google::Apis::BloggerV3::Post::Location
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV3::Post::Location
- 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
-
#lat ⇒ Float
Location's latitude.
-
#lng ⇒ Float
Location's longitude.
-
#name ⇒ String
Location name.
-
#span ⇒ String
Location's viewport span.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Location
constructor
A new instance of Location.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#lat ⇒ Float
Location's latitude.
Corresponds to the JSON property lat
1031 1032 1033 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 1031 def lat @lat end |
#lng ⇒ Float
Location's longitude.
Corresponds to the JSON property lng
1036 1037 1038 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 1036 def lng @lng end |
#name ⇒ String
Location name.
Corresponds to the JSON property name
1041 1042 1043 |
# File 'generated/google/apis/blogger_v3/classes.rb', line 1041 def name @name end |
#span ⇒ String
Location's viewport span. Can be used when rendering a map preview.
Corresponds to the JSON property span
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 |