Skip to content

Commit

Permalink
👕 Run crystal format
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredsmithse committed May 31, 2019
1 parent 79b3ea7 commit 8e4074a
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
18 changes: 9 additions & 9 deletions spec/ynab/api/accounts_spec.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@ describe YNAB::API::Accounts do
fixture = YAML.parse(File.read("spec/fixtures/api_response/accounts/get.yml"))
budget_id = UUID.new(fixture["budget_id"].to_s)

WebMock.
stub(:get, fixture["endpoint"].to_s).
to_return(body: fixture["response"].to_json)
WebMock
.stub(:get, fixture["endpoint"].to_s)
.to_return(body: fixture["response"].to_json)

YNAB::Client.
budgets.
accounts(budget_id).
get(fixture["account_id"].to_s).
class.
should eq Account
YNAB::Client
.budgets
.accounts(budget_id)
.get(fixture["account_id"].to_s)
.class
.should eq Account
end
end
end
8 changes: 4 additions & 4 deletions src/ynab/models/scheduled_transaction_summary.cr
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ class ScheduledTransactionSummary

property cleared : Frequency
property amount : Int64
property memo : String?
property flag_color : FlagColor?
property account_id : UUID
property payee_id : UUID?
property memo : String?
property flag_color : FlagColor?
property account_id : UUID
property payee_id : UUID?
property category_id : UUID?
property transfer_account_id : UUID?
property deleted : Bool
Expand Down
12 changes: 6 additions & 6 deletions src/ynab/models/transaction_detail.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ class TransactionDetail
property date : Time

property amount : Int64
property memo : String?
property cleared : ClearedStatus
property approved : Bool
property flag_color : FlagColor?
property account_id : UUID
property payee_id : UUID?
property memo : String?
property cleared : ClearedStatus
property approved : Bool
property flag_color : FlagColor?
property account_id : UUID
property payee_id : UUID?
property category_id : UUID?
property transfer_account_id : UUID?
property transfer_transaction_id : UUID?
Expand Down
12 changes: 6 additions & 6 deletions src/ynab/models/transaction_summary.cr
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ class TransactionSummary
property date : Time

property amount : Int64
property memo : String?
property cleared : ClearedStatus
property approved : Bool
property flag_color : FlagColor?
property account_id : UUID
property payee_id : UUID?
property memo : String?
property cleared : ClearedStatus
property approved : Bool
property flag_color : FlagColor?
property account_id : UUID
property payee_id : UUID?
property category_id : UUID?
property transfer_account_id : UUID?
property transfer_transaction_id : UUID?
Expand Down

0 comments on commit 8e4074a

Please sign in to comment.