Class: Google::Apis::WalletobjectsV1::LatLongPoint
- Inherits:
-
Object
- Object
- Google::Apis::WalletobjectsV1::LatLongPoint
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/walletobjects_v1/classes.rb,
lib/google/apis/walletobjects_v1/representations.rb,
lib/google/apis/walletobjects_v1/representations.rb
Instance Attribute Summary collapse
-
#kind ⇒ String
Identifies what kind of resource this is.
-
#latitude ⇒ Float
The latitude specified as any value in the range of -90.0 through +90.0, both inclusive.
-
#longitude ⇒ Float
The longitude specified in the range -180.0 through +180.0, both inclusive.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LatLongPoint
constructor
A new instance of LatLongPoint.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LatLongPoint
Returns a new instance of LatLongPoint.
4528 4529 4530 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4528 def initialize(**args) update!(**args) end |
Instance Attribute Details
#kind ⇒ String
Identifies what kind of resource this is. Value: the fixed string "
walletobjects#latLongPoint"
.
Corresponds to the JSON property kind
4514 4515 4516 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4514 def kind @kind end |
#latitude ⇒ Float
The latitude specified as any value in the range of -90.0 through +90.0, both
inclusive. Values outside these bounds will be rejected.
Corresponds to the JSON property latitude
4520 4521 4522 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4520 def latitude @latitude end |
#longitude ⇒ Float
The longitude specified in the range -180.0 through +180.0, both inclusive.
Values outside these bounds will be rejected.
Corresponds to the JSON property longitude
4526 4527 4528 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4526 def longitude @longitude end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4533 4534 4535 4536 4537 |
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4533 def update!(**args) @kind = args[:kind] if args.key?(:kind) @latitude = args[:latitude] if args.key?(:latitude) @longitude = args[:longitude] if args.key?(:longitude) end |