Class: TRMNL::API::Models::Palette
- Inherits:
-
Data
- Object
- Data
- TRMNL::API::Models::Palette
- Defined in:
- lib/trmnl/api/models/palette.rb
Overview
IPs API response.
Instance Attribute Summary collapse
-
#colors ⇒ Object
readonly
Returns the value of attribute colors.
-
#framework_class ⇒ Object
readonly
Returns the value of attribute framework_class.
-
#grays ⇒ Object
readonly
Returns the value of attribute grays.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Class Method Summary collapse
Instance Attribute Details
#colors ⇒ Object (readonly)
Returns the value of attribute colors
7 8 9 |
# File 'lib/trmnl/api/models/palette.rb', line 7 def colors @colors end |
#framework_class ⇒ Object (readonly)
Returns the value of attribute framework_class
7 8 9 |
# File 'lib/trmnl/api/models/palette.rb', line 7 def framework_class @framework_class end |
#grays ⇒ Object (readonly)
Returns the value of attribute grays
7 8 9 |
# File 'lib/trmnl/api/models/palette.rb', line 7 def grays @grays end |
#id ⇒ Object (readonly)
Returns the value of attribute id
7 8 9 |
# File 'lib/trmnl/api/models/palette.rb', line 7 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute 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) |