lib/epics/client.rb in epics-1.2.0 vs lib/epics/client.rb in epics-1.2.1
- old
+ new
@@ -73,18 +73,18 @@
File.write(path, ini_letter(bankname))
path
end
def credit(document)
- @client.CCT(document)
+ self.CCT(document)
end
def debit(document, type = :CDD)
- @client.send(type, document)
+ self.public_send(type, document)
end
def statements(from, to, type = :STA)
- @client.send(type, from, to)
+ self.public_send(type, from, to)
end
def HIA
post(url, Epics::HIA.new(self).to_xml).body.ok?
end