Class: Zype::Apps
Overview
This class does not support all, create, update or delete methods. Read more at docs.zype.com/v1.0/reference#apps
Constant Summary
Constants inherited from BaseModel
Instance Attribute Summary
Attributes inherited from BaseModel
Instance Method Summary collapse
-
#find ⇒ Hash
Returns app that matches that app_key used in the authorization.
Methods inherited from BaseModel
#all, #auth=, #create, #delete, #initialize, #update
Constructor Details
This class inherits a constructor from Zype::BaseModel
Instance Method Details
#find ⇒ Hash
Returns app that matches that app_key used in the authorization
17 18 19 20 21 |
# File 'lib/zype/models/apps.rb', line 17 def find raise Zype::Client::NoAppKey if Zype.configuration.app_key.to_s.empty? client.execute(method: :get, path: '/app') end |