Module: Multicolor::REST::Endpoints::Metadata

Included in:
Transport
Defined in:
lib/multicolor/rest/endpoints/metadata.rb

Instance Method Summary collapse

Instance Method Details

#countObject



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(options)
  keys = [:count_colors, :weights, :filepaths]
  formatted_options = extract_and_format_options(options, keys)
  get(:count_collection_colors, formatted_options)
end

#count_metadata(options) ⇒ Object



18
19
20
21
22
# File 'lib/multicolor/rest/endpoints/metadata.rb', line 18

def (options)
  keys = [:colors, :count_metadata, :weights, :filepaths]
  formatted_options = extract_and_format_options(options, keys)
  get(:count_metadata, formatted_options)
end

#get_return_metadataObject



28
29
30
# File 'lib/multicolor/rest/endpoints/metadata.rb', line 28

def 
  get(:get_return_metadata)
end

#get_search_metadataObject



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(options = {})
  get(:list, options)
end

#pingObject



40
41
42
# File 'lib/multicolor/rest/endpoints/metadata.rb', line 40

def ping
  get(:ping)
end