Class: Bigcommerce::Request

Inherits:
Module
  • Object
show all
Defined in:
lib/bigcommerce/request.rb

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Constructor Details

#initialize(uri) ⇒ Request

Returns a new instance of Request.


33
34
35
# File 'lib/bigcommerce/request.rb', line 33

def initialize(uri)
  @uri = uri
end

Instance Method Details

#included(base) ⇒ Object


37
38
39
40
41
42
43
# File 'lib/bigcommerce/request.rb', line 37

def included(base)
  base.extend ClassMethods
  path_builder = PathBuilder.new @uri
  base.define_singleton_method :path do
    path_builder
  end
end