Class: Passwordstate::Resources::Document

Inherits:
Passwordstate::Resource show all
Defined in:
lib/passwordstate/resources/document.rb

Instance Attribute Summary

Attributes inherited from Passwordstate::Resource

#client

Class Method Summary collapse

Methods inherited from Passwordstate::Resource

all, api_path, #api_path, #attributes, #delete, delete, #get, index_field, #initialize, #inspect, passwordstate_to_ruby_field, passwordstateify_hash, post, #post, put, #put, ruby_to_passwordstate_field, #stored?

Constructor Details

This class inherits a constructor from Passwordstate::Resource

Class Method Details

.get(client, store, object) ⇒ Object



15
16
17
# File 'lib/passwordstate/resources/document.rb', line 15

def self.get(client, store, object)
  client.request :get, "#{api_path}/#{store}/#{object}"
end

.search(client, store, options = {}) ⇒ Object



11
12
13
# File 'lib/passwordstate/resources/document.rb', line 11

def self.search(client, store, options = {})
  client.request :get, "#{api_path}/#{store}/", query: options
end