Class: EasyPost::Services::Embeddable

Inherits:
Service
  • Object
show all
Defined in:
lib/easypost/services/embeddable.rb

Instance Method Summary collapse

Methods inherited from Service

#initialize

Constructor Details

This class inherits a constructor from EasyPost::Services::Service

Instance Method Details

#create_session(params = {}) ⇒ Object

Create an Embeddable Session



5
6
7
8
9
# File 'lib/easypost/services/embeddable.rb', line 5

def create_session(params = {})
  response = @client.make_request(:post, 'embeddables/session', params)

  EasyPost::InternalUtilities::Json.convert_json_to_object(response)
end