Class: Easyship::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/easyship/configuration.rb

Overview

Represents the configuration settings for the Easyship client.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



8
9
10
11
12
# File 'lib/easyship/configuration.rb', line 8

def initialize
  @url = nil
  @api_key = nil
  @per_page = 100 # Maximum possible number of items per page
end

Instance Attribute Details

#api_keyObject

Returns the value of attribute api_key.



6
7
8
# File 'lib/easyship/configuration.rb', line 6

def api_key
  @api_key
end

#per_pageObject

Returns the value of attribute per_page.



6
7
8
# File 'lib/easyship/configuration.rb', line 6

def per_page
  @per_page
end

#urlObject

Returns the value of attribute url.



6
7
8
# File 'lib/easyship/configuration.rb', line 6

def url
  @url
end