Class: Keypic::Config
- Inherits:
-
Object
- Object
- Keypic::Config
- Defined in:
- lib/keypic/config.rb
Instance Attribute Summary collapse
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#form_id ⇒ Object
Returns the value of attribute form_id.
-
#format ⇒ Object
Returns the value of attribute format.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
5 6 7 8 9 10 |
# File 'lib/keypic/config.rb', line 5 def initialize @endpoint = "http://ws.keypic.com" @form_id = "secret_token_here" @format = :json @quantity = 1 end |
Instance Attribute Details
#endpoint ⇒ Object
Returns the value of attribute endpoint.
3 4 5 |
# File 'lib/keypic/config.rb', line 3 def endpoint @endpoint end |
#form_id ⇒ Object
Returns the value of attribute form_id.
3 4 5 |
# File 'lib/keypic/config.rb', line 3 def form_id @form_id end |
#format ⇒ Object
Returns the value of attribute format.
3 4 5 |
# File 'lib/keypic/config.rb', line 3 def format @format end |
#quantity ⇒ Object
Returns the value of attribute quantity.
3 4 5 |
# File 'lib/keypic/config.rb', line 3 def quantity @quantity end |