Module: PrizePicks::Api::Endpoints::MemberTransactions

Included in:
PrizePicks::Api::Endpoints
Defined in:
lib/prizepicks/api/endpoints/member_transactions.rb

Constant Summary collapse

ENDPOINT =
'/member_transactions'

Instance Method Summary collapse

Instance Method Details

#member_transactions(options = {}) ⇒ Object



9
10
11
12
# File 'lib/prizepicks/api/endpoints/member_transactions.rb', line 9

def member_transactions(options = {})
  resp = request(:get, ENDPOINT, options)
  Collection.from_response(parsed_resp(resp), type: MemberTransaction)
end

#parsed_resp(resp) ⇒ Object



14
15
16
# File 'lib/prizepicks/api/endpoints/member_transactions.rb', line 14

def parsed_resp(resp)
  { 'data' => resp.map { |r| r }, 'included' => [] }
end