Class: Sgn::Webservice

Inherits:
Object
  • Object
show all
Defined in:
lib/sgn/webservice.rb

Constant Summary collapse

WS_HOST =
'www.sgn.com.br'
WS_BASE =
'/webservice/'

Instance Method Summary collapse

Constructor Details

#initialize(customer_id, password, version = 'sgn2') ⇒ Webservice

Returns a new instance of Webservice.



10
11
12
13
14
# File 'lib/sgn/webservice.rb', line 10

def initialize(customer_id, password, version = 'sgn2')
  @customer_id = customer_id
  @password = password
  @version = version
end

Instance Method Details

#get(service, params = {}) ⇒ Object



16
17
18
# File 'lib/sgn/webservice.rb', line 16

def get(service, params = {})
  get_json(service, params)
end