Class: Zype::Apps

Inherits:
BaseModel show all
Defined in:
lib/zype/models/apps.rb

Overview

This class does not support all, create, update or delete methods. Read more at docs.zype.com/v1.0/reference#apps

Since:

  • 0.6.0

Constant Summary

Constants inherited from BaseModel

BaseModel::ACCEPTED_KEYS

Instance Attribute Summary

Attributes inherited from BaseModel

#client, #path

Instance Method Summary collapse

Methods inherited from BaseModel

#all, #auth=, #create, #delete, #initialize, #update

Constructor Details

This class inherits a constructor from Zype::BaseModel

Instance Method Details

#findHash

Returns app that matches that app_key used in the authorization

Returns:

  • (Hash)

    the app returned from the API

Raises:

Since:

  • 0.6.0



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