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



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

def initialize
  @url = nil
  @api_key = nil
  @per_page = 100 # Maximum possible number of items per page
  @requests_per_second = nil
  @requests_per_minute = nil
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

#requests_per_minuteObject

Returns the value of attribute requests_per_minute.



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

def requests_per_minute
  @requests_per_minute
end

#requests_per_secondObject

Returns the value of attribute requests_per_second.



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

def requests_per_second
  @requests_per_second
end

#urlObject

Returns the value of attribute url.



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

def url
  @url
end