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

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

Overview

Models the data of the API response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



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

def label
  @label
end

#uriObject (readonly)

Returns the value of attribute uri

Returns:

  • (Object)

    the current value of uri



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

def uri
  @uri
end

Class Method Details

.for(**attributes) ⇒ Object



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

def self.for(**attributes) = new(**attributes.transform_keys!(version: :label, url: :uri))