snaptrade 2.0.6 → 2.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2497212ff05ea0018179af0a13d124cb440c5ca8e66cc3cc75aa3dcace3a7e8b
4
- data.tar.gz: 00c690703e5d62849b81154524ea3edd739aedb2ec42716e759553c76c9f4719
3
+ metadata.gz: ea92a80449f02409736d95defad024ad7ed7621eed12b733a1c829659c5e7eb1
4
+ data.tar.gz: 330f64ff549bf0cad2f4da394b0c3060ef001ac8025ac67e535924288f7d2d3f
5
5
  SHA512:
6
- metadata.gz: a0ecfcb2473d49cc57b9f8e9d543434a36eea93b5c53a971f8c06409f10278a296c6766e4e5443b50dadc76c70e52f8fabba7414a17829850719c0a810450496
7
- data.tar.gz: 787359393a9d2fa4ce2e69bc76b0c36914ccd6032cc14510f20197aa7474f3c59668ecde4b22b392f8cb0636c6155757bf67766325846832a47c3fd199fff5f3
6
+ metadata.gz: da3472a1af95936e7776218b3bc9b7459df0410b9044520eb67d759237003fe9329e60d92f91e5792fd3aae87d5fd07468a4a445bf392f76189f5fb901dacd74
7
+ data.tar.gz: 1d4a9ebfccd75507df2eb9525575392ec4de5996a7fb90cfac760f4ff87d991aaad929e832436634163880bbaeff64437e7adfe9c0866f434e2faf0b64d55a67
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- snaptrade (2.0.5)
4
+ snaptrade (2.0.6)
5
5
  faraday (>= 1.0.1, < 3.0)
6
6
  faraday-multipart (~> 1.0, >= 1.0.4)
7
7
 
data/README.md CHANGED
@@ -9,7 +9,7 @@ For more information, please visit [https://snaptrade.com/](https://snaptrade.co
9
9
  Add to Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'snaptrade', '~> 2.0.6'
12
+ gem 'snaptrade', '~> 2.0.7'
13
13
  ```
14
14
 
15
15
  ## Getting Started
data/docs/Balance.md CHANGED
@@ -6,6 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **currency** | [**Currency**](Currency.md) | | [optional] |
8
8
  | **cash** | **Float** | | [optional] |
9
+ | **buying_power** | **Float** | | [optional] |
9
10
 
10
11
  ## Example
11
12
 
@@ -14,7 +15,8 @@ require 'snaptrade'
14
15
 
15
16
  instance = SnapTrade::Balance.new(
16
17
  currency: null,
17
- cash: 300.71
18
+ cash: 300.71,
19
+ buying_power: 410.71
18
20
  )
19
21
  ```
20
22
 
@@ -18,11 +18,14 @@ module SnapTrade
18
18
 
19
19
  attr_accessor :cash
20
20
 
21
+ attr_accessor :buying_power
22
+
21
23
  # Attribute mapping from ruby-style variable name to JSON key.
22
24
  def self.attribute_map
23
25
  {
24
26
  :'currency' => :'currency',
25
- :'cash' => :'cash'
27
+ :'cash' => :'cash',
28
+ :'buying_power' => :'buying_power'
26
29
  }
27
30
  end
28
31
 
@@ -35,14 +38,16 @@ module SnapTrade
35
38
  def self.openapi_types
36
39
  {
37
40
  :'currency' => :'Currency',
38
- :'cash' => :'Float'
41
+ :'cash' => :'Float',
42
+ :'buying_power' => :'Float'
39
43
  }
40
44
  end
41
45
 
42
46
  # List of attributes with nullable: true
43
47
  def self.openapi_nullable
44
48
  Set.new([
45
- :'cash'
49
+ :'cash',
50
+ :'buying_power'
46
51
  ])
47
52
  end
48
53
 
@@ -68,6 +73,10 @@ module SnapTrade
68
73
  if attributes.key?(:'cash')
69
74
  self.cash = attributes[:'cash']
70
75
  end
76
+
77
+ if attributes.key?(:'buying_power')
78
+ self.buying_power = attributes[:'buying_power']
79
+ end
71
80
  end
72
81
 
73
82
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -89,7 +98,8 @@ module SnapTrade
89
98
  return true if self.equal?(o)
90
99
  self.class == o.class &&
91
100
  currency == o.currency &&
92
- cash == o.cash
101
+ cash == o.cash &&
102
+ buying_power == o.buying_power
93
103
  end
94
104
 
95
105
  # @see the `==` method
@@ -101,7 +111,7 @@ module SnapTrade
101
111
  # Calculates hash code according to all attributes.
102
112
  # @return [Integer] Hash code
103
113
  def hash
104
- [currency, cash].hash
114
+ [currency, cash, buying_power].hash
105
115
  end
106
116
 
107
117
  # Builds the object from hash
@@ -9,5 +9,5 @@ Contact: api@snaptrade.com
9
9
  =end
10
10
 
11
11
  module SnapTrade
12
- VERSION = '2.0.6'
12
+ VERSION = '2.0.7'
13
13
  end
@@ -33,4 +33,10 @@ describe SnapTrade::Balance do
33
33
  end
34
34
  end
35
35
 
36
+ describe 'test attribute "buying_power"' do
37
+ it 'should work' do
38
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
39
+ end
40
+ end
41
+
36
42
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snaptrade
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.6
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - SnapTrade
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-16 00:00:00.000000000 Z
11
+ date: 2024-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday