Class: Google::Apis::MerchantapiAccountsV1beta::Distance
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiAccountsV1beta::Distance
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_accounts_v1beta/classes.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb,
lib/google/apis/merchantapi_accounts_v1beta/representations.rb
Overview
Maximum delivery radius. This is only required for the local delivery shipment type.
Instance Attribute Summary collapse
-
#unit ⇒ String
Unit can differ based on country, it is parameterized to include miles and kilometers.
-
#value ⇒ Fixnum
Integer value of distance.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Distance
constructor
A new instance of Distance.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Distance
Returns a new instance of Distance.
853 854 855 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 853 def initialize(**args) update!(**args) end |
Instance Attribute Details
#unit ⇒ String
Unit can differ based on country, it is parameterized to include miles and
kilometers.
Corresponds to the JSON property unit
846 847 848 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 846 def unit @unit end |
#value ⇒ Fixnum
Integer value of distance.
Corresponds to the JSON property value
851 852 853 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 851 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
858 859 860 861 |
# File 'lib/google/apis/merchantapi_accounts_v1beta/classes.rb', line 858 def update!(**args) @unit = args[:unit] if args.key?(:unit) @value = args[:value] if args.key?(:value) end |