Skip to content

Commit

Permalink
Privatize method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabe Berke-Williams committed Nov 18, 2011
1 parent 7a7e153 commit eab8d78
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/fake_braintree/customer.rb
Expand Up @@ -7,10 +7,6 @@ def initialize(customer_hash, merchant_id)
@merchant_id = merchant_id
end

def invalid?
credit_card_is_failure? || invalid_credit_card?
end

def create
if invalid?
failure_response
Expand Down Expand Up @@ -42,6 +38,10 @@ def customer_hash

private

def invalid?
credit_card_is_failure? || invalid_credit_card?
end

def split_expiration_date_into_month_and_year!(hash)
if expiration_date = hash["credit_card"].delete("expiration_date")
hash["credit_card"]["expiration_month"] = expiration_date.split('/')[0]
Expand Down

0 comments on commit eab8d78

Please sign in to comment.