Class: TRMNL::API::Models::CurrentScreen

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

Overview

Models API response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#filenameObject (readonly)

Returns the value of attribute filename

Returns:

  • (Object)

    the current value of filename



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

def filename
  @filename
end

#image_urlObject (readonly)

Returns the value of attribute image_url

Returns:

  • (Object)

    the current value of image_url



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

def image_url
  @image_url
end

#refresh_rateObject (readonly)

Returns the value of attribute refresh_rate

Returns:

  • (Object)

    the current value of refresh_rate



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

def refresh_rate
  @refresh_rate
end

Class Method Details

.for(attributes) ⇒ Object



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

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