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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ ShippingsettingsGetSupportedCarriersResponse

Returns a new instance of ShippingsettingsGetSupportedCarriersResponse.



9563
9564
9565
# File 'generated/google/apis/content_v2_1/classes.rb', line 9563

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



9555
9556
9557
# File 'generated/google/apis/content_v2_1/classes.rb', line 9555

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)


9561
9562
9563
# File 'generated/google/apis/content_v2_1/classes.rb', line 9561

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9568
9569
9570
9571
# File 'generated/google/apis/content_v2_1/classes.rb', line 9568

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