Method: Icss::Meta::Message#to_hash
- Defined in:
- lib/icss/message.rb
#to_hash ⇒ Object
Conversion
99 100 101 102 103 104 105 106 107 108 109 |
# File 'lib/icss/message.rb', line 99 def to_hash() { :request => summary_of_request_attr, :response => summary_of_response_attr, :doc => doc, :errors => (errors.blank? ? nil : errors), :samples => samples.map(&:to_hash).map(&:compact_blank), :initial_free_qty => initial_free_qty, :price_per_k_in_cents => price_per_k_in_cents, }.compact end |