Class: Cabriolet::Models::CHMSection

Inherits:
Object
  • Object
show all
Defined in:
lib/cabriolet/models/chm_section.rb

Overview

Base class for CHM sections

Direct Known Subclasses

CHMSecMSCompressed, CHMSecUncompressed

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(chm, id) ⇒ CHMSection

Returns a new instance of CHMSection.



9
10
11
12
# File 'lib/cabriolet/models/chm_section.rb', line 9

def initialize(chm, id)
  @chm = chm
  @id = id
end

Instance Attribute Details

#chmObject

Returns the value of attribute chm.



7
8
9
# File 'lib/cabriolet/models/chm_section.rb', line 7

def chm
  @chm
end

#idObject

Returns the value of attribute id.



7
8
9
# File 'lib/cabriolet/models/chm_section.rb', line 7

def id
  @id
end