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

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



5872
5873
5874
# File 'generated/google/apis/content_v2/classes.rb', line 5872

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



5864
5865
5866
# File 'generated/google/apis/content_v2/classes.rb', line 5864

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)


5870
5871
5872
# File 'generated/google/apis/content_v2/classes.rb', line 5870

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5877
5878
5879
5880
# File 'generated/google/apis/content_v2/classes.rb', line 5877

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