Class: OpConnect::Item::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/op_connect/item/section.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Section

Returns a new instance of Section.



6
7
8
9
# File 'lib/op_connect/item/section.rb', line 6

def initialize(options = {})
  @id = options["id"]
  @label = options["label"]
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



4
5
6
# File 'lib/op_connect/item/section.rb', line 4

def id
  @id
end

#labelObject (readonly)

Returns the value of attribute label.



4
5
6
# File 'lib/op_connect/item/section.rb', line 4

def label
  @label
end