Class: Fino::Settings::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/fino/settings/section.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name = nil, label: nil) ⇒ Section

Returns a new instance of Section.



6
7
8
9
10
11
# File 'lib/fino/settings/section.rb', line 6

def initialize(name = nil, label: nil)
  @name = name
  @label = label

  @settings = {}
end

Instance Attribute Details

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'lib/fino/settings/section.rb', line 4

def label
  @label
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/fino/settings/section.rb', line 4

def name
  @name
end

#settingsObject (readonly)

Returns the value of attribute settings.



4
5
6
# File 'lib/fino/settings/section.rb', line 4

def settings
  @settings
end