Class: Io::Flow::V0::Models::RatecardEstimateSummaryForm
- Inherits:
-
Object
- Object
- Io::Flow::V0::Models::RatecardEstimateSummaryForm
- Defined in:
- lib/flow_commerce/flow_api_v0_client.rb
Instance Attribute Summary collapse
-
#center_key ⇒ Object
readonly
Returns the value of attribute center_key.
-
#destination ⇒ Object
readonly
Returns the value of attribute destination.
-
#origin ⇒ Object
readonly
Returns the value of attribute origin.
-
#service ⇒ Object
readonly
Returns the value of attribute service.
Instance Method Summary collapse
- #copy(incoming = {}) ⇒ Object
-
#initialize(incoming = {}) ⇒ RatecardEstimateSummaryForm
constructor
A new instance of RatecardEstimateSummaryForm.
- #to_hash ⇒ Object
- #to_json ⇒ Object
Constructor Details
#initialize(incoming = {}) ⇒ RatecardEstimateSummaryForm
Returns a new instance of RatecardEstimateSummaryForm.
61951 61952 61953 61954 61955 61956 61957 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 61951 def initialize(incoming={}) opts = HttpClient::Helper.symbolize_keys(incoming) @origin = (x = opts.delete(:origin); x.nil? ? nil : HttpClient::Preconditions.assert_class('origin', x, String)) @destination = (x = opts.delete(:destination); x.nil? ? nil : HttpClient::Preconditions.assert_class('destination', x, String)) @service = (x = opts.delete(:service); x.nil? ? nil : HttpClient::Preconditions.assert_class('service', x, String)) @center_key = (x = opts.delete(:center_key); x.nil? ? nil : HttpClient::Preconditions.assert_class('center_key', x, String)) end |
Instance Attribute Details
#center_key ⇒ Object (readonly)
Returns the value of attribute center_key.
61949 61950 61951 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 61949 def center_key @center_key end |
#destination ⇒ Object (readonly)
Returns the value of attribute destination.
61949 61950 61951 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 61949 def destination @destination end |
#origin ⇒ Object (readonly)
Returns the value of attribute origin.
61949 61950 61951 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 61949 def origin @origin end |
#service ⇒ Object (readonly)
Returns the value of attribute service.
61949 61950 61951 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 61949 def service @service end |
Instance Method Details
#copy(incoming = {}) ⇒ Object
61963 61964 61965 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 61963 def copy(incoming={}) RatecardEstimateSummaryForm.new(to_hash.merge(HttpClient::Helper.symbolize_keys(incoming))) end |
#to_hash ⇒ Object
61967 61968 61969 61970 61971 61972 61973 61974 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 61967 def to_hash { :origin => origin, :destination => destination, :service => service, :center_key => center_key } end |
#to_json ⇒ Object
61959 61960 61961 |
# File 'lib/flow_commerce/flow_api_v0_client.rb', line 61959 def to_json JSON.dump(to_hash) end |