Class: Ayadn::PreferencesFormatsTable
- Defined in:
- lib/ayadn/preferences_object.rb
Instance Attribute Summary collapse
-
#borders ⇒ Object
Returns the value of attribute borders.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(hash) ⇒ PreferencesFormatsTable
constructor
A new instance of PreferencesFormatsTable.
- #to_h ⇒ Object
Constructor Details
#initialize(hash) ⇒ PreferencesFormatsTable
Returns a new instance of PreferencesFormatsTable.
16 17 18 19 |
# File 'lib/ayadn/preferences_object.rb', line 16 def initialize hash @width = hash[:width] @borders = hash[:borders] end |
Instance Attribute Details
#borders ⇒ Object
Returns the value of attribute borders.
15 16 17 |
# File 'lib/ayadn/preferences_object.rb', line 15 def borders @borders end |
#width ⇒ Object
Returns the value of attribute width.
15 16 17 |
# File 'lib/ayadn/preferences_object.rb', line 15 def width @width end |
Instance Method Details
#to_h ⇒ Object
20 21 22 23 24 25 |
# File 'lib/ayadn/preferences_object.rb', line 20 def to_h { width: @width, borders: @borders } end |