Class: Google::Apis::ContentV2::ShippingsettingsGetSupportedCarriersResponse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ShippingsettingsGetSupportedCarriersResponse

Returns a new instance of ShippingsettingsGetSupportedCarriersResponse.



10793
10794
10795
# File 'generated/google/apis/content_v2/classes.rb', line 10793

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

Instance Attribute Details

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

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



10785
10786
10787
# File 'generated/google/apis/content_v2/classes.rb', line 10785

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)


10791
10792
10793
# File 'generated/google/apis/content_v2/classes.rb', line 10791

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10798
10799
10800
10801
# File 'generated/google/apis/content_v2/classes.rb', line 10798

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