Class: Billingrails::SellerNamespace

Inherits:
Object
  • Object
show all
Defined in:
lib/billingrails/client.rb

Overview

Nested namespace for seller resources

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ SellerNamespace

Returns a new instance of SellerNamespace.



24
25
26
27
# File 'lib/billingrails/client.rb', line 24

def initialize(client)
  @products = Resources::Products.new(client)
  @orders = Resources::Orders.new(client)
end

Instance Attribute Details

#ordersObject (readonly)

Returns the value of attribute orders.



22
23
24
# File 'lib/billingrails/client.rb', line 22

def orders
  @orders
end

#productsObject (readonly)

Returns the value of attribute products.



22
23
24
# File 'lib/billingrails/client.rb', line 22

def products
  @products
end