Module: Nuvemshop

Defined in:
lib/nuvemshop.rb,
lib/nuvemshop/order.rb,
lib/nuvemshop/orders.rb,
lib/nuvemshop/product.rb,
lib/nuvemshop/request.rb,
lib/nuvemshop/version.rb,
lib/nuvemshop/customer.rb,
lib/nuvemshop/response.rb,
lib/nuvemshop/base_model.rb,
lib/nuvemshop/order/address.rb,
lib/nuvemshop/product/image.rb,
lib/nuvemshop/order/timestampz.rb,
lib/nuvemshop/extras/timestampz.rb,
lib/nuvemshop/order/client_details.rb,
lib/nuvemshop/order/payment_details.rb,
lib/nuvemshop/extensions/credentiable.rb,
lib/nuvemshop/inflections/pascal_case.rb,
lib/nuvemshop/extensions/mass_assignment.rb,
lib/nuvemshop/order/promotional_discount.rb,
lib/nuvemshop/inflections/infer_key_class_name.rb

Defined Under Namespace

Modules: Extensions, Extras, Inflections Classes: BaseModel, Customer, Error, Order, Orders, Product, Request, Response

Constant Summary collapse

VERSION =
'0.1.1'.freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.client_idObject

Returns the value of attribute client_id.



31
32
33
# File 'lib/nuvemshop.rb', line 31

def client_id
  @client_id
end

.client_secretObject

Returns the value of attribute client_secret.



31
32
33
# File 'lib/nuvemshop.rb', line 31

def client_secret
  @client_secret
end

.store_access_tokenObject



46
47
48
# File 'lib/nuvemshop.rb', line 46

def store_access_token
  @store_access_token ||= nil
end

.store_user_idObject



42
43
44
# File 'lib/nuvemshop.rb', line 42

def store_user_id
  @store_user_id ||= nil
end

.user_agentObject



38
39
40
# File 'lib/nuvemshop.rb', line 38

def user_agent
  @user_agent ||= 'Nuvemshop Gem(https://github.com/alexandreh92/nuvemshop-ruby)'
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (Nuvemshop)

    the object that the method was called on



34
35
36
# File 'lib/nuvemshop.rb', line 34

def configure
  yield self
end