Class: Clowk::SDK::Subdomain

Inherits:
Resource show all
Defined in:
lib/clowk/sdk/subdomain.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#destroy, #find, #initialize, #list, #search, #show

Constructor Details

This class inherits a constructor from Clowk::SDK::Resource

Class Method Details

.resource_pathObject



6
7
8
# File 'lib/clowk/sdk/subdomain.rb', line 6

def self.resource_path
  "instances"
end

Instance Method Details

#find_by_pk(key = nil) ⇒ Object



10
11
12
13
14
# File 'lib/clowk/sdk/subdomain.rb', line 10

def find_by_pk(key = nil)
  return if key.blank?

  search(publishable_key: key)
end