ynab 0.6.0 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +24 -24
  4. data/Rakefile +1 -1
  5. data/config.json +1 -1
  6. data/docs/AccountsApi.md +0 -76
  7. data/docs/BudgetsApi.md +0 -74
  8. data/docs/CategoriesApi.md +0 -76
  9. data/docs/CurrencyFormat.md +8 -1
  10. data/docs/DateFormat.md +1 -1
  11. data/docs/HybridTransaction.md +3 -0
  12. data/docs/MonthsApi.md +0 -76
  13. data/docs/PayeeLocationsApi.md +0 -115
  14. data/docs/PayeesApi.md +0 -76
  15. data/docs/ScheduledTransactionsApi.md +0 -76
  16. data/docs/TransactionsApi.md +0 -325
  17. data/docs/UserApi.md +0 -34
  18. data/lib/ynab/api/accounts_api.rb +8 -10
  19. data/lib/ynab/api/budgets_api.rb +8 -10
  20. data/lib/ynab/api/categories_api.rb +8 -10
  21. data/lib/ynab/api/months_api.rb +8 -10
  22. data/lib/ynab/api/payee_locations_api.rb +11 -14
  23. data/lib/ynab/api/payees_api.rb +8 -10
  24. data/lib/ynab/api/scheduled_transactions_api.rb +8 -10
  25. data/lib/ynab/api/transactions_api.rb +26 -34
  26. data/lib/ynab/api/user_api.rb +5 -6
  27. data/lib/ynab/api_client.rb +1 -1
  28. data/lib/ynab/api_error.rb +1 -1
  29. data/lib/ynab/configuration.rb +2 -2
  30. data/lib/ynab/models/account.rb +18 -22
  31. data/lib/ynab/models/account_response.rb +7 -12
  32. data/lib/ynab/models/account_wrapper.rb +7 -12
  33. data/lib/ynab/models/accounts_response.rb +7 -12
  34. data/lib/ynab/models/accounts_wrapper.rb +7 -12
  35. data/lib/ynab/models/budget_detail.rb +8 -13
  36. data/lib/ynab/models/budget_detail_response.rb +7 -12
  37. data/lib/ynab/models/budget_detail_wrapper.rb +8 -13
  38. data/lib/ynab/models/budget_summary.rb +8 -13
  39. data/lib/ynab/models/budget_summary_response.rb +7 -12
  40. data/lib/ynab/models/budget_summary_wrapper.rb +7 -12
  41. data/lib/ynab/models/bulk_id_wrapper.rb +7 -12
  42. data/lib/ynab/models/bulk_ids.rb +8 -13
  43. data/lib/ynab/models/bulk_response.rb +7 -12
  44. data/lib/ynab/models/bulk_transactions.rb +7 -12
  45. data/lib/ynab/models/categories_response.rb +7 -12
  46. data/lib/ynab/models/category.rb +14 -19
  47. data/lib/ynab/models/category_group.rb +9 -14
  48. data/lib/ynab/models/category_group_with_categories.rb +10 -15
  49. data/lib/ynab/models/category_groups_wrapper.rb +7 -12
  50. data/lib/ynab/models/category_response.rb +7 -12
  51. data/lib/ynab/models/category_wrapper.rb +7 -12
  52. data/lib/ynab/models/currency_format.rb +112 -19
  53. data/lib/ynab/models/date_format.rb +16 -21
  54. data/lib/ynab/models/error_detail.rb +9 -14
  55. data/lib/ynab/models/error_response.rb +7 -12
  56. data/lib/ynab/models/hybrid_transaction.rb +74 -36
  57. data/lib/ynab/models/hybrid_transactions_response.rb +7 -12
  58. data/lib/ynab/models/hybrid_transactions_wrapper.rb +7 -12
  59. data/lib/ynab/models/month_detail.rb +11 -16
  60. data/lib/ynab/models/month_detail_response.rb +7 -12
  61. data/lib/ynab/models/month_detail_wrapper.rb +7 -12
  62. data/lib/ynab/models/month_summaries_response.rb +7 -12
  63. data/lib/ynab/models/month_summaries_wrapper.rb +7 -12
  64. data/lib/ynab/models/month_summary.rb +10 -15
  65. data/lib/ynab/models/payee.rb +9 -14
  66. data/lib/ynab/models/payee_location.rb +10 -15
  67. data/lib/ynab/models/payee_location_response.rb +7 -12
  68. data/lib/ynab/models/payee_location_wrapper.rb +7 -12
  69. data/lib/ynab/models/payee_locations_response.rb +7 -12
  70. data/lib/ynab/models/payee_locations_wrapper.rb +7 -12
  71. data/lib/ynab/models/payee_response.rb +7 -12
  72. data/lib/ynab/models/payee_wrapper.rb +7 -12
  73. data/lib/ynab/models/payees_response.rb +7 -12
  74. data/lib/ynab/models/payees_wrapper.rb +7 -12
  75. data/lib/ynab/models/save_transaction.rb +15 -19
  76. data/lib/ynab/models/save_transaction_wrapper.rb +7 -12
  77. data/lib/ynab/models/scheduled_sub_transaction.rb +13 -18
  78. data/lib/ynab/models/scheduled_transaction_detail.rb +27 -31
  79. data/lib/ynab/models/scheduled_transaction_response.rb +7 -12
  80. data/lib/ynab/models/scheduled_transaction_summary.rb +23 -27
  81. data/lib/ynab/models/scheduled_transaction_wrapper.rb +7 -12
  82. data/lib/ynab/models/scheduled_transactions_response.rb +7 -12
  83. data/lib/ynab/models/scheduled_transactions_wrapper.rb +7 -12
  84. data/lib/ynab/models/sub_transaction.rb +13 -18
  85. data/lib/ynab/models/transaction_detail.rb +28 -32
  86. data/lib/ynab/models/transaction_response.rb +7 -12
  87. data/lib/ynab/models/transaction_summary.rb +24 -28
  88. data/lib/ynab/models/transaction_wrapper.rb +7 -12
  89. data/lib/ynab/models/transactions_response.rb +7 -12
  90. data/lib/ynab/models/transactions_wrapper.rb +7 -12
  91. data/lib/ynab/models/user.rb +7 -12
  92. data/lib/ynab/models/user_response.rb +7 -12
  93. data/lib/ynab/models/user_wrapper.rb +7 -12
  94. data/lib/ynab/version.rb +2 -2
  95. data/spec-v1-swagger.json +50 -5
  96. data/swagger-templates/api_doc.mustache +32 -0
  97. data/ynab.gemspec +1 -1
  98. metadata +4 -3
@@ -6,18 +6,16 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module YnabApi
16
-
17
16
  class MonthSummariesWrapper
18
17
  attr_accessor :months
19
18
 
20
-
21
19
  # Attribute mapping from ruby-style variable name to JSON key.
22
20
  def self.attribute_map
23
21
  {
@@ -38,14 +36,13 @@ module YnabApi
38
36
  return unless attributes.is_a?(Hash)
39
37
 
40
38
  # convert string to symbol for hash key
41
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
42
40
 
43
41
  if attributes.has_key?(:'months')
44
42
  if (value = attributes[:'months']).is_a?(Array)
45
43
  self.months = value
46
44
  end
47
45
  end
48
-
49
46
  end
50
47
 
51
48
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -53,17 +50,17 @@ module YnabApi
53
50
  def list_invalid_properties
54
51
  invalid_properties = Array.new
55
52
  if @months.nil?
56
- invalid_properties.push("invalid value for 'months', months cannot be nil.")
53
+ invalid_properties.push('invalid value for "months", months cannot be nil.')
57
54
  end
58
55
 
59
- return invalid_properties
56
+ invalid_properties
60
57
  end
61
58
 
62
59
  # Check to see if the all the properties in the model are valid
63
60
  # @return true if the model is valid
64
61
  def valid?
65
62
  return false if @months.nil?
66
- return true
63
+ true
67
64
  end
68
65
 
69
66
  # Checks equality by comparing each attribute.
@@ -96,7 +93,7 @@ module YnabApi
96
93
  # check to ensure the input is an array given that the the attribute
97
94
  # is documented as an array but the input is not
98
95
  if attributes[self.class.attribute_map[key]].is_a?(Array)
99
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
96
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
100
97
  end
101
98
  elsif !attributes[self.class.attribute_map[key]].nil?
102
99
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -178,7 +175,7 @@ module YnabApi
178
175
  # @return [Hash] Returns the value in the form of hash
179
176
  def _to_hash(value)
180
177
  if value.is_a?(Array)
181
- value.compact.map{ |v| _to_hash(v) }
178
+ value.compact.map { |v| _to_hash(v) }
182
179
  elsif value.is_a?(Hash)
183
180
  {}.tap do |hash|
184
181
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -189,7 +186,5 @@ module YnabApi
189
186
  value
190
187
  end
191
188
  end
192
-
193
189
  end
194
-
195
190
  end
@@ -6,14 +6,13 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module YnabApi
16
-
17
16
  class MonthSummary
18
17
  attr_accessor :month
19
18
 
@@ -24,7 +23,6 @@ module YnabApi
24
23
 
25
24
  attr_accessor :age_of_money
26
25
 
27
-
28
26
  # Attribute mapping from ruby-style variable name to JSON key.
29
27
  def self.attribute_map
30
28
  {
@@ -51,7 +49,7 @@ module YnabApi
51
49
  return unless attributes.is_a?(Hash)
52
50
 
53
51
  # convert string to symbol for hash key
54
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
52
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
55
53
 
56
54
  if attributes.has_key?(:'month')
57
55
  self.month = attributes[:'month']
@@ -68,7 +66,6 @@ module YnabApi
68
66
  if attributes.has_key?(:'age_of_money')
69
67
  self.age_of_money = attributes[:'age_of_money']
70
68
  end
71
-
72
69
  end
73
70
 
74
71
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -76,22 +73,22 @@ module YnabApi
76
73
  def list_invalid_properties
77
74
  invalid_properties = Array.new
78
75
  if @month.nil?
79
- invalid_properties.push("invalid value for 'month', month cannot be nil.")
76
+ invalid_properties.push('invalid value for "month", month cannot be nil.')
80
77
  end
81
78
 
82
79
  if @note.nil?
83
- invalid_properties.push("invalid value for 'note', note cannot be nil.")
80
+ invalid_properties.push('invalid value for "note", note cannot be nil.')
84
81
  end
85
82
 
86
83
  if @to_be_budgeted.nil?
87
- invalid_properties.push("invalid value for 'to_be_budgeted', to_be_budgeted cannot be nil.")
84
+ invalid_properties.push('invalid value for "to_be_budgeted", to_be_budgeted cannot be nil.')
88
85
  end
89
86
 
90
87
  if @age_of_money.nil?
91
- invalid_properties.push("invalid value for 'age_of_money', age_of_money cannot be nil.")
88
+ invalid_properties.push('invalid value for "age_of_money", age_of_money cannot be nil.')
92
89
  end
93
90
 
94
- return invalid_properties
91
+ invalid_properties
95
92
  end
96
93
 
97
94
  # Check to see if the all the properties in the model are valid
@@ -101,7 +98,7 @@ module YnabApi
101
98
  return false if @note.nil?
102
99
  return false if @to_be_budgeted.nil?
103
100
  return false if @age_of_money.nil?
104
- return true
101
+ true
105
102
  end
106
103
 
107
104
  # Checks equality by comparing each attribute.
@@ -137,7 +134,7 @@ module YnabApi
137
134
  # check to ensure the input is an array given that the the attribute
138
135
  # is documented as an array but the input is not
139
136
  if attributes[self.class.attribute_map[key]].is_a?(Array)
140
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
137
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
141
138
  end
142
139
  elsif !attributes[self.class.attribute_map[key]].nil?
143
140
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -219,7 +216,7 @@ module YnabApi
219
216
  # @return [Hash] Returns the value in the form of hash
220
217
  def _to_hash(value)
221
218
  if value.is_a?(Array)
222
- value.compact.map{ |v| _to_hash(v) }
219
+ value.compact.map { |v| _to_hash(v) }
223
220
  elsif value.is_a?(Hash)
224
221
  {}.tap do |hash|
225
222
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -230,7 +227,5 @@ module YnabApi
230
227
  value
231
228
  end
232
229
  end
233
-
234
230
  end
235
-
236
231
  end
@@ -6,14 +6,13 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module YnabApi
16
-
17
16
  class Payee
18
17
  attr_accessor :id
19
18
 
@@ -22,7 +21,6 @@ module YnabApi
22
21
  # If a transfer payee, the account_id to which this payee transfers to
23
22
  attr_accessor :transfer_account_id
24
23
 
25
-
26
24
  # Attribute mapping from ruby-style variable name to JSON key.
27
25
  def self.attribute_map
28
26
  {
@@ -47,7 +45,7 @@ module YnabApi
47
45
  return unless attributes.is_a?(Hash)
48
46
 
49
47
  # convert string to symbol for hash key
50
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
48
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
51
49
 
52
50
  if attributes.has_key?(:'id')
53
51
  self.id = attributes[:'id']
@@ -60,7 +58,6 @@ module YnabApi
60
58
  if attributes.has_key?(:'transfer_account_id')
61
59
  self.transfer_account_id = attributes[:'transfer_account_id']
62
60
  end
63
-
64
61
  end
65
62
 
66
63
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -68,18 +65,18 @@ module YnabApi
68
65
  def list_invalid_properties
69
66
  invalid_properties = Array.new
70
67
  if @id.nil?
71
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
68
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
72
69
  end
73
70
 
74
71
  if @name.nil?
75
- invalid_properties.push("invalid value for 'name', name cannot be nil.")
72
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
76
73
  end
77
74
 
78
75
  if @transfer_account_id.nil?
79
- invalid_properties.push("invalid value for 'transfer_account_id', transfer_account_id cannot be nil.")
76
+ invalid_properties.push('invalid value for "transfer_account_id", transfer_account_id cannot be nil.')
80
77
  end
81
78
 
82
- return invalid_properties
79
+ invalid_properties
83
80
  end
84
81
 
85
82
  # Check to see if the all the properties in the model are valid
@@ -88,7 +85,7 @@ module YnabApi
88
85
  return false if @id.nil?
89
86
  return false if @name.nil?
90
87
  return false if @transfer_account_id.nil?
91
- return true
88
+ true
92
89
  end
93
90
 
94
91
  # Checks equality by comparing each attribute.
@@ -123,7 +120,7 @@ module YnabApi
123
120
  # check to ensure the input is an array given that the the attribute
124
121
  # is documented as an array but the input is not
125
122
  if attributes[self.class.attribute_map[key]].is_a?(Array)
126
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
123
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
124
  end
128
125
  elsif !attributes[self.class.attribute_map[key]].nil?
129
126
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -205,7 +202,7 @@ module YnabApi
205
202
  # @return [Hash] Returns the value in the form of hash
206
203
  def _to_hash(value)
207
204
  if value.is_a?(Array)
208
- value.compact.map{ |v| _to_hash(v) }
205
+ value.compact.map { |v| _to_hash(v) }
209
206
  elsif value.is_a?(Hash)
210
207
  {}.tap do |hash|
211
208
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -216,7 +213,5 @@ module YnabApi
216
213
  value
217
214
  end
218
215
  end
219
-
220
216
  end
221
-
222
217
  end
@@ -6,14 +6,13 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module YnabApi
16
-
17
16
  class PayeeLocation
18
17
  attr_accessor :id
19
18
 
@@ -23,7 +22,6 @@ module YnabApi
23
22
 
24
23
  attr_accessor :longitude
25
24
 
26
-
27
25
  # Attribute mapping from ruby-style variable name to JSON key.
28
26
  def self.attribute_map
29
27
  {
@@ -50,7 +48,7 @@ module YnabApi
50
48
  return unless attributes.is_a?(Hash)
51
49
 
52
50
  # convert string to symbol for hash key
53
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
51
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
54
52
 
55
53
  if attributes.has_key?(:'id')
56
54
  self.id = attributes[:'id']
@@ -67,7 +65,6 @@ module YnabApi
67
65
  if attributes.has_key?(:'longitude')
68
66
  self.longitude = attributes[:'longitude']
69
67
  end
70
-
71
68
  end
72
69
 
73
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -75,22 +72,22 @@ module YnabApi
75
72
  def list_invalid_properties
76
73
  invalid_properties = Array.new
77
74
  if @id.nil?
78
- invalid_properties.push("invalid value for 'id', id cannot be nil.")
75
+ invalid_properties.push('invalid value for "id", id cannot be nil.')
79
76
  end
80
77
 
81
78
  if @payee_id.nil?
82
- invalid_properties.push("invalid value for 'payee_id', payee_id cannot be nil.")
79
+ invalid_properties.push('invalid value for "payee_id", payee_id cannot be nil.')
83
80
  end
84
81
 
85
82
  if @latitude.nil?
86
- invalid_properties.push("invalid value for 'latitude', latitude cannot be nil.")
83
+ invalid_properties.push('invalid value for "latitude", latitude cannot be nil.')
87
84
  end
88
85
 
89
86
  if @longitude.nil?
90
- invalid_properties.push("invalid value for 'longitude', longitude cannot be nil.")
87
+ invalid_properties.push('invalid value for "longitude", longitude cannot be nil.')
91
88
  end
92
89
 
93
- return invalid_properties
90
+ invalid_properties
94
91
  end
95
92
 
96
93
  # Check to see if the all the properties in the model are valid
@@ -100,7 +97,7 @@ module YnabApi
100
97
  return false if @payee_id.nil?
101
98
  return false if @latitude.nil?
102
99
  return false if @longitude.nil?
103
- return true
100
+ true
104
101
  end
105
102
 
106
103
  # Checks equality by comparing each attribute.
@@ -136,7 +133,7 @@ module YnabApi
136
133
  # check to ensure the input is an array given that the the attribute
137
134
  # is documented as an array but the input is not
138
135
  if attributes[self.class.attribute_map[key]].is_a?(Array)
139
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
136
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
140
137
  end
141
138
  elsif !attributes[self.class.attribute_map[key]].nil?
142
139
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -218,7 +215,7 @@ module YnabApi
218
215
  # @return [Hash] Returns the value in the form of hash
219
216
  def _to_hash(value)
220
217
  if value.is_a?(Array)
221
- value.compact.map{ |v| _to_hash(v) }
218
+ value.compact.map { |v| _to_hash(v) }
222
219
  elsif value.is_a?(Hash)
223
220
  {}.tap do |hash|
224
221
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -229,7 +226,5 @@ module YnabApi
229
226
  value
230
227
  end
231
228
  end
232
-
233
229
  end
234
-
235
230
  end
@@ -6,18 +6,16 @@
6
6
  OpenAPI spec version: 1.0.0
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.3.1
9
+ Swagger Codegen version: 2.4.0-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module YnabApi
16
-
17
16
  class PayeeLocationResponse
18
17
  attr_accessor :data
19
18
 
20
-
21
19
  # Attribute mapping from ruby-style variable name to JSON key.
22
20
  def self.attribute_map
23
21
  {
@@ -38,12 +36,11 @@ module YnabApi
38
36
  return unless attributes.is_a?(Hash)
39
37
 
40
38
  # convert string to symbol for hash key
41
- attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
39
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
42
40
 
43
41
  if attributes.has_key?(:'data')
44
42
  self.data = attributes[:'data']
45
43
  end
46
-
47
44
  end
48
45
 
49
46
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -51,17 +48,17 @@ module YnabApi
51
48
  def list_invalid_properties
52
49
  invalid_properties = Array.new
53
50
  if @data.nil?
54
- invalid_properties.push("invalid value for 'data', data cannot be nil.")
51
+ invalid_properties.push('invalid value for "data", data cannot be nil.')
55
52
  end
56
53
 
57
- return invalid_properties
54
+ invalid_properties
58
55
  end
59
56
 
60
57
  # Check to see if the all the properties in the model are valid
61
58
  # @return true if the model is valid
62
59
  def valid?
63
60
  return false if @data.nil?
64
- return true
61
+ true
65
62
  end
66
63
 
67
64
  # Checks equality by comparing each attribute.
@@ -94,7 +91,7 @@ module YnabApi
94
91
  # check to ensure the input is an array given that the the attribute
95
92
  # is documented as an array but the input is not
96
93
  if attributes[self.class.attribute_map[key]].is_a?(Array)
97
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
94
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
98
95
  end
99
96
  elsif !attributes[self.class.attribute_map[key]].nil?
100
97
  self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
@@ -176,7 +173,7 @@ module YnabApi
176
173
  # @return [Hash] Returns the value in the form of hash
177
174
  def _to_hash(value)
178
175
  if value.is_a?(Array)
179
- value.compact.map{ |v| _to_hash(v) }
176
+ value.compact.map { |v| _to_hash(v) }
180
177
  elsif value.is_a?(Hash)
181
178
  {}.tap do |hash|
182
179
  value.each { |k, v| hash[k] = _to_hash(v) }
@@ -187,7 +184,5 @@ module YnabApi
187
184
  value
188
185
  end
189
186
  end
190
-
191
187
  end
192
-
193
188
  end