Class: Easyship::Configuration
- Inherits:
-
Object
- Object
- Easyship::Configuration
- Defined in:
- lib/easyship/configuration.rb
Overview
Represents the configuration settings for the Easyship client.
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#per_page ⇒ Object
Returns the value of attribute per_page.
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_key ⇒ Object
Returns the value of attribute api_key.
6 7 8 |
# File 'lib/easyship/configuration.rb', line 6 def api_key @api_key end |
#per_page ⇒ Object
Returns the value of attribute per_page.
6 7 8 |
# File 'lib/easyship/configuration.rb', line 6 def per_page @per_page end |
#url ⇒ Object
Returns the value of attribute url.
6 7 8 |
# File 'lib/easyship/configuration.rb', line 6 def url @url end |