Class: DataCatalog::BrokenLink
- Inherits:
-
Base
- Object
- Mash
- Base
- DataCatalog::BrokenLink
show all
- Defined in:
- lib/resources/broken_link.rb
Class Method Summary
collapse
Methods inherited from Base
_first, check_status, cursor, error, filterize, filterize_hash, http_delete, http_get, http_post, http_put, one, query_hash
Class Method Details
permalink
.all(conditions = {}) ⇒ Object
[View source]
5
6
7
|
# File 'lib/resources/broken_link.rb', line 5
def self.all(conditions={})
cursor(uri, query_hash(conditions))
end
|
permalink
.create(params = {}) ⇒ Object
[View source]
9
10
11
|
# File 'lib/resources/broken_link.rb', line 9
def self.create(params={})
one(http_post(uri, :body => params))
end
|
permalink
.destroy(id) ⇒ Object
[View source]
13
14
15
|
# File 'lib/resources/broken_link.rb', line 13
def self.destroy(id)
one(http_delete(uri(id)))
end
|
permalink
.first(conditions = {}) ⇒ Object
[View source]
17
18
19
|
# File 'lib/resources/broken_link.rb', line 17
def self.first(conditions={})
_first(http_get(uri, :query => query_hash(conditions)))
end
|
[View source]
21
22
23
|
# File 'lib/resources/broken_link.rb', line 21
def self.get(id)
one(http_get(uri(id)))
end
|
permalink
.update(id, params = {}) ⇒ Object
[View source]
25
26
27
|
# File 'lib/resources/broken_link.rb', line 25
def self.update(id, params={})
one(http_put(uri(id), :body => params))
end
|
permalink
.uri(id = nil) ⇒ Object
[View source]
31
32
33
|
# File 'lib/resources/broken_link.rb', line 31
def self.uri(id=nil)
"/broken_links/#{id}"
end
|