Class: Keypic::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/keypic/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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

#endpointObject

Returns the value of attribute endpoint.



3
4
5
# File 'lib/keypic/config.rb', line 3

def endpoint
  @endpoint
end

#form_idObject

Returns the value of attribute form_id.



3
4
5
# File 'lib/keypic/config.rb', line 3

def form_id
  @form_id
end

#formatObject

Returns the value of attribute format.



3
4
5
# File 'lib/keypic/config.rb', line 3

def format
  @format
end

#quantityObject

Returns the value of attribute quantity.



3
4
5
# File 'lib/keypic/config.rb', line 3

def quantity
  @quantity
end