Class: Google::Apis::ContentV2_1::ShippingsettingsGetSupportedCarriersResponse

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShippingsettingsGetSupportedCarriersResponse

Returns a new instance of ShippingsettingsGetSupportedCarriersResponse.



13775
13776
13777
# File 'lib/google/apis/content_v2_1/classes.rb', line 13775

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

Instance Attribute Details

#carriersArray<Google::Apis::ContentV2_1::CarriersCarrier>

A list of supported carriers. May be empty. Corresponds to the JSON property carriers



13767
13768
13769
# File 'lib/google/apis/content_v2_1/classes.rb', line 13767

def carriers
  @carriers
end

#kindString

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

Returns:

  • (String)


13773
13774
13775
# File 'lib/google/apis/content_v2_1/classes.rb', line 13773

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13780
13781
13782
13783
# File 'lib/google/apis/content_v2_1/classes.rb', line 13780

def update!(**args)
  @carriers = args[:carriers] if args.key?(:carriers)
  @kind = args[:kind] if args.key?(:kind)
end