Class: Quovo::Api::IframeToken

Inherits:
Base
  • Object
show all
Defined in:
lib/quovo/api/iframe_token.rb

Instance Attribute Summary

Attributes inherited from Base

#token

Instance Method Summary collapse

Methods inherited from Base

#api, #initialize

Methods included from Request

#request

Constructor Details

This class inherits a constructor from Quovo::Api::Base

Instance Method Details

#create(user_id) ⇒ Object



7
8
9
10
11
12
# File 'lib/quovo/api/iframe_token.rb', line 7

def create(user_id)
  user_id.require!(as: :user_id)
  api(:post, '/iframe_token', user: user_id)
    .fetch('iframe_token')
    .cast(Quovo::Models::IframeToken)
end