Class: TRMNL::API::Models::Firmware

Inherits:
Data
  • Object
show all
Defined in:
lib/trmnl/api/models/firmware.rb

Overview

Models API response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#urlObject (readonly)

Returns the value of attribute url

Returns:

  • (Object)

    the current value of url



7
8
9
# File 'lib/trmnl/api/models/firmware.rb', line 7

def url
  @url
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



7
8
9
# File 'lib/trmnl/api/models/firmware.rb', line 7

def version
  @version
end

Class Method Details

.for(attributes) ⇒ Object



8
# File 'lib/trmnl/api/models/firmware.rb', line 8

def self.for(attributes) = new(**attributes)