Class: TRMNL::API::Models::Display
- Inherits:
-
Struct
- Object
- Struct
- TRMNL::API::Models::Display
- Defined in:
- lib/trmnl/api/models/display.rb
Overview
Models data for API display responses.
Instance Attribute Summary collapse
-
#filename ⇒ Object
Returns the value of attribute filename.
-
#firmware_url ⇒ Object
Returns the value of attribute firmware_url.
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#image_url_timeout ⇒ Object
Returns the value of attribute image_url_timeout.
-
#refresh_rate ⇒ Object
Returns the value of attribute refresh_rate.
-
#reset_firmware ⇒ Object
Returns the value of attribute reset_firmware.
-
#special_function ⇒ Object
Returns the value of attribute special_function.
-
#update_firmware ⇒ Object
Returns the value of attribute update_firmware.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Display
constructor
A new instance of Display.
- #to_json ⇒ Object
Constructor Details
#initialize ⇒ Display
Returns a new instance of Display.
19 20 21 22 23 |
# File 'lib/trmnl/api/models/display.rb', line 19 def initialize(**) super apply_defaults freeze end |
Instance Attribute Details
#filename ⇒ Object
Returns the value of attribute filename
7 8 9 |
# File 'lib/trmnl/api/models/display.rb', line 7 def filename @filename end |
#firmware_url ⇒ Object
Returns the value of attribute firmware_url
7 8 9 |
# File 'lib/trmnl/api/models/display.rb', line 7 def firmware_url @firmware_url end |
#image_url ⇒ Object
Returns the value of attribute image_url
7 8 9 |
# File 'lib/trmnl/api/models/display.rb', line 7 def image_url @image_url end |
#image_url_timeout ⇒ Object
Returns the value of attribute image_url_timeout
7 8 9 |
# File 'lib/trmnl/api/models/display.rb', line 7 def image_url_timeout @image_url_timeout end |
#refresh_rate ⇒ Object
Returns the value of attribute refresh_rate
7 8 9 |
# File 'lib/trmnl/api/models/display.rb', line 7 def refresh_rate @refresh_rate end |
#reset_firmware ⇒ Object
Returns the value of attribute reset_firmware
7 8 9 |
# File 'lib/trmnl/api/models/display.rb', line 7 def reset_firmware @reset_firmware end |
#special_function ⇒ Object
Returns the value of attribute special_function
7 8 9 |
# File 'lib/trmnl/api/models/display.rb', line 7 def special_function @special_function end |
#update_firmware ⇒ Object
Returns the value of attribute update_firmware
7 8 9 |
# File 'lib/trmnl/api/models/display.rb', line 7 def update_firmware @update_firmware end |
Class Method Details
.for(attributes) ⇒ Object
17 |
# File 'lib/trmnl/api/models/display.rb', line 17 def self.for(attributes) = new(**attributes) |
Instance Method Details
#to_json ⇒ Object
25 |
# File 'lib/trmnl/api/models/display.rb', line 25 def to_json(*) = to_h.to_json(*) |