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

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

Overview

Models the data of the 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



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

def url
  @url
end

#versionObject (readonly)

Returns the value of attribute version

Returns:

  • (Object)

    the current value of version



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

def version
  @version
end

Class Method Details

.for(attributes) ⇒ Object



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

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