Class: Passwordstate::Resources::Document
- Inherits:
-
Passwordstate::Resource
- Object
- Passwordstate::Resource
- Passwordstate::Resources::Document
- Defined in:
- lib/passwordstate/resources/document.rb
Instance Attribute Summary
Attributes inherited from Passwordstate::Resource
Class Method Summary collapse
Methods inherited from Passwordstate::Resource
all, #api_path, api_path, #attributes, available?, #delete, delete, #get, index_field, #initialize, #inspect, nil_as_string, 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
17 18 19 |
# File 'lib/passwordstate/resources/document.rb', line 17 def self.get(client, store, object) client.request :get, "#{api_path}/#{store}/#{object}" end |
.search(client, store, options = {}) ⇒ Object
13 14 15 |
# File 'lib/passwordstate/resources/document.rb', line 13 def self.search(client, store, = {}) client.request :get, "#{api_path}/#{store}/", query: end |