Class: Levelup::Requests::GetQrCode

Inherits:
Base show all
Includes:
Templates::UserAuthenticated
Defined in:
lib/levelup/requests/get_qr_code.rb

Overview

Represents a request to get a QR code for a user.

Constant Summary

Constants inherited from Base

Base::ALLOWED_REQUEST_METHODS

Instance Attribute Summary

Attributes included from Templates::UserAuthenticated

#user_access_token

Instance Method Summary collapse

Methods included from Templates::UserAuthenticated

#auth_type

Methods inherited from Base

#auth_type, #headers, instance_variables_excluded_from_hash, #send_to_api

Methods inherited from Templates::DataParcel

excluded?, #initialize, instance_variables_excluded_from_hash

Constructor Details

This class inherits a constructor from Levelup::Templates::DataParcel

Instance Method Details

#bodyObject



7
8
9
# File 'lib/levelup/requests/get_qr_code.rb', line 7

def body
  {}
end

#response_from_hash(hash) ⇒ Object



11
12
13
# File 'lib/levelup/requests/get_qr_code.rb', line 11

def response_from_hash(hash)
  Responses::Success.new(hash['qr_code'])
end