Module: Multicolor::REST::Endpoints::Metadata
- Included in:
- Transport
- Defined in:
- lib/multicolor/rest/endpoints/metadata.rb
Instance Method Summary collapse
- #count ⇒ Object
-
#count_collection_colors(options) ⇒ Object
{ count_colors: [“122,233,433”, “343,433,333”] filepaths: [“/one/image”, “/another/image”] metadata: { … } }.
- #count_metadata(options) ⇒ Object
- #get_return_metadata ⇒ Object
- #get_search_metadata ⇒ Object
- #list(options = {}) ⇒ Object
- #ping ⇒ Object
Instance Method Details
#count ⇒ Object
32 33 34 |
# File 'lib/multicolor/rest/endpoints/metadata.rb', line 32 def count get(:count) end |
#count_collection_colors(options) ⇒ Object
{
count_colors: ["122,233,433", "343,433,333"]
filepaths: ["/one/image", "/another/image"]
metadata: {
...
}
}
12 13 14 15 16 |
# File 'lib/multicolor/rest/endpoints/metadata.rb', line 12 def count_collection_colors() keys = [:count_colors, :weights, :filepaths] = (, keys) get(:count_collection_colors, ) end |
#count_metadata(options) ⇒ Object
18 19 20 21 22 |
# File 'lib/multicolor/rest/endpoints/metadata.rb', line 18 def () keys = [:colors, :count_metadata, :weights, :filepaths] = (, keys) get(:count_metadata, ) end |
#get_return_metadata ⇒ Object
28 29 30 |
# File 'lib/multicolor/rest/endpoints/metadata.rb', line 28 def get(:get_return_metadata) end |
#get_search_metadata ⇒ Object
24 25 26 |
# File 'lib/multicolor/rest/endpoints/metadata.rb', line 24 def get(:get_search_metadata) end |
#list(options = {}) ⇒ Object
36 37 38 |
# File 'lib/multicolor/rest/endpoints/metadata.rb', line 36 def list( = {}) get(:list, ) end |
#ping ⇒ Object
40 41 42 |
# File 'lib/multicolor/rest/endpoints/metadata.rb', line 40 def ping get(:ping) end |