Class: BigcommerceAPI::Result

Inherits:
Base
  • Object
show all
Defined in:
lib/bigcommerce_api/result.rb

Instance Attribute Summary collapse

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

#errorsObject 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

#successObject 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

Returns:

  • (Boolean)


8
9
10
# File 'lib/bigcommerce_api/result.rb', line 8

def errors?
	(errors and !errors.empty?)
end