Class: Kentaa::Api::Resources::Theme
- Inherits:
-
Object
- Object
- Kentaa::Api::Resources::Theme
- Defined in:
- lib/kentaa/api/resources/theme.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
- #contrast_color ⇒ Object
-
#initialize(data) ⇒ Theme
constructor
A new instance of Theme.
- #primary_color ⇒ Object
Constructor Details
#initialize(data) ⇒ Theme
Returns a new instance of Theme.
9 10 11 |
# File 'lib/kentaa/api/resources/theme.rb', line 9 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/kentaa/api/resources/theme.rb', line 7 def data @data end |
Instance Method Details
#contrast_color ⇒ Object
17 18 19 |
# File 'lib/kentaa/api/resources/theme.rb', line 17 def contrast_color data[:contrast_color] end |
#primary_color ⇒ Object
13 14 15 |
# File 'lib/kentaa/api/resources/theme.rb', line 13 def primary_color data[:primary_color] end |