Class: Passwordstate::Resources::Document
Instance Attribute Summary
#client
Class Method Summary
collapse
-
.all(client, store, **query) ⇒ Object
-
.delete(client, store, object, **query) ⇒ Object
-
.get(client, store, object) ⇒ Object
-
.post(client, store, data, **query) ⇒ Object
-
.put(client, store, data, **query) ⇒ Object
-
.search(client, store, **options) ⇒ Object
acceptable_methods, api_path, #attributes, available?, #delete, #get, index_field, #initialize, nil_as_string, passwordstate_to_ruby_field, passwordstateify_hash, #post, #pretty_print, #put, ruby_to_passwordstate_field, #stored?
Class Method Details
.all(client, store, **query) ⇒ Object
15
16
17
|
# File 'lib/passwordstate/resources/document.rb', line 15
def self.all(client, store, **query)
super client, query.merge(_api_path: "#{api_path}/#{validate_store! store}")
end
|
.delete(client, store, object, **query) ⇒ Object
35
36
37
|
# File 'lib/passwordstate/resources/document.rb', line 35
def self.delete(client, store, object, **query)
super client, object, query.merge(_api_path: "#{api_path}/#{validate_store! store}")
end
|
.get(client, store, object) ⇒ Object
23
24
25
|
# File 'lib/passwordstate/resources/document.rb', line 23
def self.get(client, store, object)
super client, object, _api_path: "#{api_path}/#{validate_store! store}"
end
|
.post(client, store, data, **query) ⇒ Object
27
28
29
|
# File 'lib/passwordstate/resources/document.rb', line 27
def self.post(client, store, data, **query)
super client, data, query.merge(_api_path: "#{api_path}/#{validate_store! store}")
end
|
.put(client, store, data, **query) ⇒ Object
31
32
33
|
# File 'lib/passwordstate/resources/document.rb', line 31
def self.put(client, store, data, **query)
super client, data, query.merge(_api_path: "#{api_path}/#{validate_store! store}")
end
|
.search(client, store, **options) ⇒ Object
19
20
21
|
# File 'lib/passwordstate/resources/document.rb', line 19
def self.search(client, store, **options)
all client, store, **options
end
|