snaptrade 2.0.5 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/docs/Brokerage.md +4 -0
- data/lib/snaptrade/models/brokerage.rb +21 -1
- data/lib/snaptrade/version.rb +1 -1
- data/spec/models/brokerage_spec.rb +12 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2497212ff05ea0018179af0a13d124cb440c5ca8e66cc3cc75aa3dcace3a7e8b
|
4
|
+
data.tar.gz: 00c690703e5d62849b81154524ea3edd739aedb2ec42716e759553c76c9f4719
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0ecfcb2473d49cc57b9f8e9d543434a36eea93b5c53a971f8c06409f10278a296c6766e4e5443b50dadc76c70e52f8fabba7414a17829850719c0a810450496
|
7
|
+
data.tar.gz: 787359393a9d2fa4ce2e69bc76b0c36914ccd6032cc14510f20197aa7474f3c59668ecde4b22b392f8cb0636c6155757bf67766325846832a47c3fd199fff5f3
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/docs/Brokerage.md
CHANGED
@@ -9,6 +9,8 @@
|
|
9
9
|
| **display_name** | **String** | | [optional] |
|
10
10
|
| **description** | **String** | | [optional] |
|
11
11
|
| **aws_s3_logo_url** | **String** | | [optional] |
|
12
|
+
| **aws_s3_square_logo_url** | **String** | | [optional] |
|
13
|
+
| **open_url** | **String** | | [optional] |
|
12
14
|
| **slug** | **String** | | [optional] |
|
13
15
|
| **url** | **String** | | [optional] |
|
14
16
|
| **enabled** | **Boolean** | | [optional] |
|
@@ -34,6 +36,8 @@ instance = SnapTrade::Brokerage.new(
|
|
34
36
|
display_name: Questrade,
|
35
37
|
description: Questrade is an online brokerage firm and wealth management firm based in Canada. It is Canada's largest discount broker.,
|
36
38
|
aws_s3_logo_url: https://www.snaptrade.com/questrade.logo,
|
39
|
+
aws_s3_square_logo_url: https://www.snaptrade.com/questrade.logo,
|
40
|
+
open_url: https://www.brokerage.com,
|
37
41
|
slug: QUESTRADE,
|
38
42
|
url: https://www.questrade.com/,
|
39
43
|
enabled: true,
|
@@ -23,6 +23,10 @@ module SnapTrade
|
|
23
23
|
|
24
24
|
attr_accessor :aws_s3_logo_url
|
25
25
|
|
26
|
+
attr_accessor :aws_s3_square_logo_url
|
27
|
+
|
28
|
+
attr_accessor :open_url
|
29
|
+
|
26
30
|
attr_accessor :slug
|
27
31
|
|
28
32
|
attr_accessor :url
|
@@ -58,6 +62,8 @@ module SnapTrade
|
|
58
62
|
:'display_name' => :'display_name',
|
59
63
|
:'description' => :'description',
|
60
64
|
:'aws_s3_logo_url' => :'aws_s3_logo_url',
|
65
|
+
:'aws_s3_square_logo_url' => :'aws_s3_square_logo_url',
|
66
|
+
:'open_url' => :'open_url',
|
61
67
|
:'slug' => :'slug',
|
62
68
|
:'url' => :'url',
|
63
69
|
:'enabled' => :'enabled',
|
@@ -87,6 +93,8 @@ module SnapTrade
|
|
87
93
|
:'display_name' => :'String',
|
88
94
|
:'description' => :'String',
|
89
95
|
:'aws_s3_logo_url' => :'String',
|
96
|
+
:'aws_s3_square_logo_url' => :'String',
|
97
|
+
:'open_url' => :'String',
|
90
98
|
:'slug' => :'String',
|
91
99
|
:'url' => :'String',
|
92
100
|
:'enabled' => :'Boolean',
|
@@ -106,6 +114,8 @@ module SnapTrade
|
|
106
114
|
# List of attributes with nullable: true
|
107
115
|
def self.openapi_nullable
|
108
116
|
Set.new([
|
117
|
+
:'aws_s3_square_logo_url',
|
118
|
+
:'open_url',
|
109
119
|
:'allows_fractional_units',
|
110
120
|
:'allows_trading',
|
111
121
|
:'has_reporting',
|
@@ -148,6 +158,14 @@ module SnapTrade
|
|
148
158
|
self.aws_s3_logo_url = attributes[:'aws_s3_logo_url']
|
149
159
|
end
|
150
160
|
|
161
|
+
if attributes.key?(:'aws_s3_square_logo_url')
|
162
|
+
self.aws_s3_square_logo_url = attributes[:'aws_s3_square_logo_url']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'open_url')
|
166
|
+
self.open_url = attributes[:'open_url']
|
167
|
+
end
|
168
|
+
|
151
169
|
if attributes.key?(:'slug')
|
152
170
|
self.slug = attributes[:'slug']
|
153
171
|
end
|
@@ -226,6 +244,8 @@ module SnapTrade
|
|
226
244
|
display_name == o.display_name &&
|
227
245
|
description == o.description &&
|
228
246
|
aws_s3_logo_url == o.aws_s3_logo_url &&
|
247
|
+
aws_s3_square_logo_url == o.aws_s3_square_logo_url &&
|
248
|
+
open_url == o.open_url &&
|
229
249
|
slug == o.slug &&
|
230
250
|
url == o.url &&
|
231
251
|
enabled == o.enabled &&
|
@@ -250,7 +270,7 @@ module SnapTrade
|
|
250
270
|
# Calculates hash code according to all attributes.
|
251
271
|
# @return [Integer] Hash code
|
252
272
|
def hash
|
253
|
-
[id, name, display_name, description, aws_s3_logo_url, slug, url, enabled, maintenance_mode, allows_fractional_units, allows_trading, has_reporting, is_real_time_connection, allows_trading_through_snaptrade_api, is_scraping_integration, default_currency, brokerage_type, exchanges].hash
|
273
|
+
[id, name, display_name, description, aws_s3_logo_url, aws_s3_square_logo_url, open_url, slug, url, enabled, maintenance_mode, allows_fractional_units, allows_trading, has_reporting, is_real_time_connection, allows_trading_through_snaptrade_api, is_scraping_integration, default_currency, brokerage_type, exchanges].hash
|
254
274
|
end
|
255
275
|
|
256
276
|
# Builds the object from hash
|
data/lib/snaptrade/version.rb
CHANGED
@@ -51,6 +51,18 @@ describe SnapTrade::Brokerage do
|
|
51
51
|
end
|
52
52
|
end
|
53
53
|
|
54
|
+
describe 'test attribute "aws_s3_square_logo_url"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "open_url"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
54
66
|
describe 'test attribute "slug"' do
|
55
67
|
it 'should work' do
|
56
68
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
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.
|
4
|
+
version: 2.0.6
|
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-
|
11
|
+
date: 2024-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|