Class: Google::Apis::WalletobjectsV1::LatLongPoint

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LatLongPoint

Returns a new instance of LatLongPoint.



4648
4649
4650
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4648

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

Instance Attribute Details

#kindString

Identifies what kind of resource this is. Value: the fixed string " walletobjects#latLongPoint". Corresponds to the JSON property kind

Returns:

  • (String)


4634
4635
4636
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4634

def kind
  @kind
end

#latitudeFloat

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

Returns:

  • (Float)


4640
4641
4642
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4640

def latitude
  @latitude
end

#longitudeFloat

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

Returns:

  • (Float)


4646
4647
4648
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4646

def longitude
  @longitude
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4653
4654
4655
4656
4657
# File 'lib/google/apis/walletobjects_v1/classes.rb', line 4653

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