Class: Levelup::Endpoints::QrCodes
- Defined in:
- lib/levelup/endpoints/qr_codes.rb
Overview
The endpoint holding all functions related to managing users’ QR codes.
Instance Method Summary collapse
-
#get(user_access_token) ⇒ Object
Retrieves the specified user’s QR code using parameters specified in the endpoint.
-
#initialize(color: 0, tip_amount: 0, tip_percent: 0) ⇒ QrCodes
constructor
A new instance of QrCodes.
Constructor Details
#initialize(color: 0, tip_amount: 0, tip_percent: 0) ⇒ QrCodes
Returns a new instance of QrCodes.
5 6 7 8 9 |
# File 'lib/levelup/endpoints/qr_codes.rb', line 5 def initialize(color: 0, tip_amount: 0, tip_percent: 0) self.color = color self.tip_amount = tip_amount self.tip_percent = tip_percent end |
Instance Method Details
#get(user_access_token) ⇒ Object
Retrieves the specified user’s QR code using parameters specified in the endpoint.
13 14 15 16 |
# File 'lib/levelup/endpoints/qr_codes.rb', line 13 def get(user_access_token) request = Requests::GetQrCode.new(user_access_token: user_access_token) request.send_to_api(:get, endpoint_path) end |