Class: Desertcart::Session::Operations::Find

Inherits:
Operation::Find show all
Defined in:
lib/desertcart/session/operations/find.rb

Defined Under Namespace

Classes: Contract

Instance Method Summary collapse

Methods included from Operation::Mixin

included

Instance Method Details

#deserialized_resourceObject



18
19
20
21
22
23
# File 'lib/desertcart/session/operations/find.rb', line 18

def deserialized_resource
  Desertcart::AuthenticationToken::Deserializer.new.deserialize(
    hash: response.body['authentication_token'],
    resource: Desertcart::AuthenticationToken.new
  )
end