Class: BigcommerceAPI::Result
- Defined in:
- lib/bigcommerce_api/result.rb
Instance Attribute Summary collapse
-
#errors ⇒ Object
(also: #parsed_response)
Returns the value of attribute errors.
-
#success ⇒ Object
(also: #success?)
Returns the value of attribute success.
Instance Method Summary collapse
Methods inherited from Base
#attributes, clean!, date_adjust, default_options, #initialize, #store, #time, to_rfc2822
Constructor Details
This class inherits a constructor from BigcommerceAPI::Base
Instance Attribute Details
#errors ⇒ Object Also known as: parsed_response
Returns the value of attribute errors.
4 5 6 |
# File 'lib/bigcommerce_api/result.rb', line 4 def errors @errors end |
#success ⇒ Object Also known as: success?
Returns the value of attribute success.
4 5 6 |
# File 'lib/bigcommerce_api/result.rb', line 4 def success @success end |
Instance Method Details
#errors? ⇒ Boolean
8 9 10 |
# File 'lib/bigcommerce_api/result.rb', line 8 def errors? (errors and !errors.empty?) end |