Class: Io::Flow::V0::Models::InputSpecificationLimitations
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::InputSpecificationLimitations
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#limitations ⇒ Object
readonly
Returns the value of attribute limitations.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ InputSpecificationLimitations
constructor
A new instance of InputSpecificationLimitations.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ InputSpecificationLimitations
Returns a new instance of InputSpecificationLimitations.
34031 34032 34033 34034 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34031 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @limitations = (x = opts.delete(:limitations); x.nil? ? nil : HttpClient::Preconditions.assert_class('limitations', x, Array).map { |v| (x = v; x.is_a?(::Io::Flow::V0::Models::InputSpecificationLimitation) ? x : ::Io::Flow::V0::Models::InputSpecificationLimitation.from_json(x)) }) end |
Instance Attribute Details
#limitations ⇒ Object (readonly)
Returns the value of attribute limitations.
34029 34030 34031 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34029 def limitations @limitations end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
34040 34041 34042 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34040 def copy(incoming={}) InputSpecificationLimitations.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
34044 34045 34046 34047 34048 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34044 def to_hash { :limitations => limitations.nil? ? nil : limitations.map { |o| o.to_hash } } end |
#to_json ⇒ Object
34036 34037 34038 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 34036 def to_json JSON.dump(to_hash) end |