Class: TRMNL::API::Models::Firmware::Version
- Inherits:
-
Data
- Object
- Data
- TRMNL::API::Models::Firmware::Version
- Defined in:
- lib/trmnl/api/models/firmware/version.rb
Overview
Models the data of the API response.
Instance Attribute Summary collapse
-
#label ⇒ Object
readonly
Returns the value of attribute label.
-
#uri ⇒ Object
readonly
Returns the value of attribute uri.
Class Method Summary collapse
Instance Attribute Details
#label ⇒ Object (readonly)
Returns the value of attribute label
8 9 10 |
# File 'lib/trmnl/api/models/firmware/version.rb', line 8 def label @label end |
#uri ⇒ Object (readonly)
Returns the value of attribute 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)) |