Class: Kontakt::Firmware

Inherits:
Auth show all
Defined in:
lib/kontakt.rb

Instance Attribute Summary

Attributes inherited from Configuration

#key

Class Method Summary collapse

Methods inherited from Auth

make_request

Methods inherited from Configuration

#initialize

Constructor Details

This class inherits a constructor from Kontakt::Configuration

Class Method Details

.latest(uniqueId, options = {deviceType: ''}) ⇒ Object

> Firmware



132
133
134
135
136
137
138
139
140
# File 'lib/kontakt.rb', line 132

def self.latest(uniqueId, options = {deviceType: ''})
  request_options = {
    params: {
      :uniqueId => uniqueId,
      :deviceType => options[:deviceType]
    }
  }
  return JSON.parse(make_request('get', '/firmware/last', request_options))
end