Class: Seam::Clients::PhonesSimulate

Inherits:
Object
  • Object
show all
Defined in:
lib/seam/routes/clients/phones_simulate.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:, defaults:) ⇒ PhonesSimulate

Returns a new instance of PhonesSimulate.



6
7
8
9
# File 'lib/seam/routes/clients/phones_simulate.rb', line 6

def initialize(client:, defaults:)
  @client = client
  @defaults = defaults
end

Instance Method Details

#create_sandbox_phone(user_identity_id:, assa_abloy_metadata: nil, custom_sdk_installation_id: nil, phone_metadata: nil) ⇒ Object



11
12
13
14
15
# File 'lib/seam/routes/clients/phones_simulate.rb', line 11

def create_sandbox_phone(user_identity_id:, assa_abloy_metadata: nil, custom_sdk_installation_id: nil, phone_metadata: nil)
  res = @client.post("/phones/simulate/create_sandbox_phone", {user_identity_id: user_identity_id, assa_abloy_metadata: , custom_sdk_installation_id: custom_sdk_installation_id, phone_metadata: }.compact)

  Seam::Resources::Phone.load_from_response(res.body["phone"])
end