Class: Google::Apis::BloggerV3::Post::Location
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV3::Post::Location
- 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
-
#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.
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
#lat ⇒ Float
Location's latitude.
Corresponds to the JSON property lat
1043 1044 1045 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 1043 def lat @lat end |
#lng ⇒ Float
Location's longitude.
Corresponds to the JSON property lng
1048 1049 1050 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 1048 def lng @lng end |
#name ⇒ String
Location name.
Corresponds to the JSON property name
1053 1054 1055 |
# File 'lib/google/apis/blogger_v3/classes.rb', line 1053 def name @name end |
#span ⇒ String
Location's viewport span. Can be used when rendering a map preview.
Corresponds to the JSON property span
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 |