class Lockme::Base
Base
class for all LockMe API objects
Attributes
base_path[R]
Public Class Methods
collection_path()
click to toggle source
# File lib/lockme/base.rb, line 27 def self.collection_path base_path end
singular_path(id)
click to toggle source
# File lib/lockme/base.rb, line 23 def self.singular_path(id) [base_path, id].join('/') end
Public Instance Methods
collection_path()
click to toggle source
# File lib/lockme/base.rb, line 19 def collection_path self.class.collection_path end
persisted?()
click to toggle source
Check if object is persisted with Lockme
# File lib/lockme/base.rb, line 11 def persisted? !id.nil? end
singular_path()
click to toggle source
# File lib/lockme/base.rb, line 15 def singular_path self.class.singular_path(id) end