Class: TRMNL::API::Models::Palette

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

Overview

IPs API response.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#colorsObject (readonly)

Returns the value of attribute colors

Returns:

  • (Object)

    the current value of colors



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

def colors
  @colors
end

#framework_classObject (readonly)

Returns the value of attribute framework_class

Returns:

  • (Object)

    the current value of framework_class



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

def framework_class
  @framework_class
end

#graysObject (readonly)

Returns the value of attribute grays

Returns:

  • (Object)

    the current value of grays



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

def grays
  @grays
end

#idObject (readonly)

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



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

def name
  @name
end

Class Method Details

.for(attributes) ⇒ Object



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

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