prizepicks 0.3.0 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/prizepicks/api/endpoints/member_transactions.rb +20 -0
- data/lib/prizepicks/api/endpoints.rb +2 -0
- data/lib/prizepicks/client.rb +12 -0
- data/lib/prizepicks/objects/member_transaction.rb +5 -0
- data/lib/prizepicks/version.rb +1 -1
- data/lib/prizepicks.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d26a3d6d2819f3e35fd7751667c701402c5a7387e41102d899c3faf97f8acb43
|
4
|
+
data.tar.gz: af0614d8a6bb172aba7c9336f03e424a8e6369152af6f5796d674c71844c0bd2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f12c3e5920a07449c87f5d04b1eef61e34f8229cfe27f5dccc842689ef329212624ca9e1b61ca2b7d5948880a86e54a9b16a53d2c3b000075003a05ff6fc3d5c
|
7
|
+
data.tar.gz: bda7f06d8d9ea01b1e90644f697a179dc8ffa5fd57f93c50674acfd7ee5523463d3d76f8d8305e40589f0de0b49e037f29cab455604e3a0d5da04f87c3d070f2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [0.4.0](https://www.github.com/troyizzle/prizepicks/compare/v0.3.0...v0.4.0) (2023-03-02)
|
4
|
+
|
5
|
+
|
6
|
+
### Features
|
7
|
+
|
8
|
+
* client inspect filter ([e1d2c0a](https://www.github.com/troyizzle/prizepicks/commit/e1d2c0a91f136c7ceaaad7489145c015e804cfce))
|
9
|
+
* member_transactions endpoints ([0d64526](https://www.github.com/troyizzle/prizepicks/commit/0d64526bc65db6c23b02740be0d5f24e54f3d9c0))
|
10
|
+
|
3
11
|
## [0.3.0](https://www.github.com/troyizzle/prizepicks/compare/v0.2.3...v0.3.0) (2023-02-24)
|
4
12
|
|
5
13
|
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module PrizePicks
|
4
|
+
module Api
|
5
|
+
module Endpoints
|
6
|
+
module MemberTransactions
|
7
|
+
ENDPOINT = '/member_transactions'
|
8
|
+
|
9
|
+
def member_transactions(options = {})
|
10
|
+
resp = request(:get, ENDPOINT, options)
|
11
|
+
Collection.from_response(parsed_resp(resp), type: MemberTransaction)
|
12
|
+
end
|
13
|
+
|
14
|
+
def parsed_resp(resp)
|
15
|
+
{ 'data' => resp.map { |r| r }, 'included' => [] }
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require_relative 'endpoints/entries'
|
4
4
|
require_relative 'endpoints/leagues'
|
5
|
+
require_relative 'endpoints/member_transactions'
|
5
6
|
require_relative 'endpoints/projections'
|
6
7
|
require_relative 'endpoints/sign_in'
|
7
8
|
|
@@ -10,6 +11,7 @@ module PrizePicks
|
|
10
11
|
module Endpoints
|
11
12
|
include Entries
|
12
13
|
include Leagues
|
14
|
+
include MemberTransactions
|
13
15
|
include Projections
|
14
16
|
include SignIn
|
15
17
|
end
|
data/lib/prizepicks/client.rb
CHANGED
@@ -17,5 +17,17 @@ module PrizePicks
|
|
17
17
|
@stubs = options[:stubs] || nil
|
18
18
|
@adapter = options[:adapter] || nil
|
19
19
|
end
|
20
|
+
|
21
|
+
def inspect
|
22
|
+
content = Config::ATTRIBUTES.map do |key|
|
23
|
+
if key == :password
|
24
|
+
"#{key}: [FILTERED]"
|
25
|
+
else
|
26
|
+
"#{key}: #{send(key).inspect}"
|
27
|
+
end
|
28
|
+
end.compact.join(', ')
|
29
|
+
|
30
|
+
"#<#{self.class.name} #{content}>"
|
31
|
+
end
|
20
32
|
end
|
21
33
|
end
|
data/lib/prizepicks/version.rb
CHANGED
data/lib/prizepicks.rb
CHANGED
@@ -21,6 +21,7 @@ module PrizePicks
|
|
21
21
|
autoload :Base, 'prizepicks/objects/base'
|
22
22
|
autoload :Entry, 'prizepicks/objects/entry'
|
23
23
|
autoload :League, 'prizepicks/objects/league'
|
24
|
+
autoload :MemberTransaction, 'prizepicks/objects/member_transaction'
|
24
25
|
autoload :Projection, 'prizepicks/objects/projection'
|
25
26
|
autoload :User, 'prizepicks/objects/user'
|
26
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prizepicks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Troy Underwood
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02
|
11
|
+
date: 2023-03-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -110,6 +110,7 @@ files:
|
|
110
110
|
- lib/prizepicks/api/endpoints.rb
|
111
111
|
- lib/prizepicks/api/endpoints/entries.rb
|
112
112
|
- lib/prizepicks/api/endpoints/leagues.rb
|
113
|
+
- lib/prizepicks/api/endpoints/member_transactions.rb
|
113
114
|
- lib/prizepicks/api/endpoints/projections.rb
|
114
115
|
- lib/prizepicks/api/endpoints/sign_in.rb
|
115
116
|
- lib/prizepicks/api/responses/user.rb
|
@@ -122,6 +123,7 @@ files:
|
|
122
123
|
- lib/prizepicks/objects/base.rb
|
123
124
|
- lib/prizepicks/objects/entry.rb
|
124
125
|
- lib/prizepicks/objects/league.rb
|
126
|
+
- lib/prizepicks/objects/member_transaction.rb
|
125
127
|
- lib/prizepicks/objects/projection.rb
|
126
128
|
- lib/prizepicks/objects/user.rb
|
127
129
|
- lib/prizepicks/version.rb
|