Class: Google::Apis::BloggerV2::Post::Location
- Inherits:
-
Object
- Object
- Google::Apis::BloggerV2::Post::Location
- 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
-
#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.
992 993 994 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 992 def initialize(**args) update!(**args) end |
Instance Attribute Details
#lat ⇒ Float
Location's latitude.
Corresponds to the JSON property lat
975 976 977 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 975 def lat @lat end |
#lng ⇒ Float
Location's longitude.
Corresponds to the JSON property lng
980 981 982 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 980 def lng @lng end |
#name ⇒ String
Location name.
Corresponds to the JSON property name
985 986 987 |
# File 'generated/google/apis/blogger_v2/classes.rb', line 985 def name @name end |
#span ⇒ String
Location's viewport span. Can be used when rendering a map preview.
Corresponds to the JSON property span
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 |