Class: Params

Inherits:
Object
  • Object
show all
Defined in:
lib/galileo_processing/rest/params.rb

Constant Summary collapse

API_LOGIN =
'apiLogin'
API_TRANSKEY =
'apiTransKey'
PROVIDER_ID =
'providerId'
TRANSACTION_ID =
'transactionId'
PROD_ID =
'prodId'

Instance Method Summary collapse

Constructor Details

#initializeParams

Returns a new instance of Params.



10
11
12
# File 'lib/galileo_processing/rest/params.rb', line 10

def initialize()
  @data = Hash.new
end

Instance Method Details

#get_paramsObject



14
15
16
# File 'lib/galileo_processing/rest/params.rb', line 14

def get_params()
  @data
end

#with(name, value) ⇒ Object



18
19
20
21
# File 'lib/galileo_processing/rest/params.rb', line 18

def with(name, value)
  @data[name] = value
  return self
end

#with_apiLogin(apiLogin) ⇒ Object



25
26
27
# File 'lib/galileo_processing/rest/params.rb', line 25

def with_apiLogin(apiLogin)
  return self.with(Params::, apiLogin)
end

#with_apiTransKey(apiTransKey) ⇒ Object



29
30
31
# File 'lib/galileo_processing/rest/params.rb', line 29

def with_apiTransKey(apiTransKey)
  return self.with(Params::API_TRANSKEY, apiTransKey)
end

#with_prodId(prodId) ⇒ Object



41
42
43
# File 'lib/galileo_processing/rest/params.rb', line 41

def with_prodId(prodId)
  return self.with(Params::PROD_ID, prodId)
end

#with_providerId(providerId) ⇒ Object



33
34
35
# File 'lib/galileo_processing/rest/params.rb', line 33

def with_providerId(providerId)
  return self.with(Params::PROVIDER_ID, providerId)
end

#with_transactionId(transactionId) ⇒ Object



37
38
39
# File 'lib/galileo_processing/rest/params.rb', line 37

def with_transactionId(transactionId)
  return self.with(Params::TRANSACTION_ID, transactionId)
end