Class: Ayadn::PreferencesFormatsTable

Inherits:
Object
  • Object
show all
Defined in:
lib/ayadn/preferences_object.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bordersObject

Returns the value of attribute borders.



15
16
17
# File 'lib/ayadn/preferences_object.rb', line 15

def borders
  @borders
end

#widthObject

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_hObject



20
21
22
23
24
25
# File 'lib/ayadn/preferences_object.rb', line 20

def to_h
  {
    width: @width,
    borders: @borders
  }
end