Skip to content

Commit

Permalink
README refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
guinascimento committed Nov 3, 2010
1 parent 177127d commit 2117934
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/direct_payment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class DirectPayment
class << self

# Cria uma instrução de pagamento direto
def direct(attributes = {})
def body(attributes = {})
builder = Nokogiri::XML::Builder.new(:encoding => "UTF-8") do |xml|

# Identificador do tipo de instrução
Expand Down
2 changes: 1 addition & 1 deletion lib/moip.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class << self

# Envia uma instrução para pagamento único
def checkout(attributes = {})
full_data = post('EnviarInstrucao/Unica', :body => DirectPayment.direct(attributes))
full_data = post('EnviarInstrucao/Unica', :body => DirectPayment.body(attributes))

raise(StandardError, "Ocorreu um erro ao chamar o webservice") if full_data.nil?

Expand Down

0 comments on commit 2117934

Please sign in to comment.