Class: Myparcel::API::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/myparcel/api/base.rb

Overview

Base class for all endpoints

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(authentication) ⇒ Base

Returns a new instance of Base.



8
9
10
# File 'lib/myparcel/api/base.rb', line 8

def initialize(authentication)
  @authentication = authentication
end

Instance Attribute Details

#authenticationObject (readonly)

Returns the value of attribute authentication.



6
7
8
# File 'lib/myparcel/api/base.rb', line 6

def authentication
  @authentication
end

#pathObject

Returns the value of attribute path.



5
6
7
# File 'lib/myparcel/api/base.rb', line 5

def path
  @path
end