Module: RESTRack

Defined in:
lib/restrack-client.rb,
lib/restrack-client.rb

Defined Under Namespace

Classes: Client

Class Method Summary collapse

Class Method Details

.mime_type_for(format) ⇒ Object



86
87
88
# File 'lib/restrack-client.rb', line 86

def self.mime_type_for(format)
  MIME::Types.type_for(format.to_s.downcase)[0]
end