class Hipay::BusinessLines
Public Class Methods
new(wsLogin, wsPassword, test: false)
click to toggle source
# File lib/hipay.rb, line 152 def initialize(wsLogin, wsPassword, test: false) @wsLogin = wsLogin @wsPassword = wsPassword @test = test end
Public Instance Methods
build_basic_request()
click to toggle source
# File lib/hipay.rb, line 165 def build_basic_request { wsLogin: @wsLogin, wsPassword: @wsPassword, locale: @locale } end
get(locale)
click to toggle source
# File lib/hipay.rb, line 158 def get(locale) @locale = locale operation = :get parameters = build_basic_request Hipay::call_api("business-lines-v2", operation, @test, { parameters: parameters })[:get_response][:get_result] end