Everything - including integers, strings are objects.
For example, in Ruby: -10.abs => 10
Only because '-10' is an object we could call the 'abs' method on it - instead of calling it like a normal function abs(-10).
module ShopifyWrapper | |
class Download | |
attr_reader :response, :error_message | |
def initialize(response, error_message) | |
@response = response | |
@error_message = error_message | |
end | |
def self.all_products(options={}) | |
ShopifyWrapper.activate_session(options[:shop].shopify_domain, options[:shop].shopify_token) | |
begin |