Class: Cnccs::Note

Inherits:
Object
  • Object
show all
Defined in:
lib/cnccs/ccs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(text, ccs_code) ⇒ Note

Returns a new instance of Note.

Parameters:

  • text (String)
  • ccs_code (String)


11
12
13
14
# File 'lib/cnccs/ccs.rb', line 11

def initialize(text, ccs_code)
  @text     = text
  @ccs_code = ccs_code
end

Instance Attribute Details

#ccs_codeString (readonly)

Returns:

  • (String)


7
8
9
# File 'lib/cnccs/ccs.rb', line 7

def ccs_code
  @ccs_code
end

#textString (readonly)

Returns:

  • (String)


7
8
9
# File 'lib/cnccs/ccs.rb', line 7

def text
  @text
end

Instance Method Details

#ccsCnccs::Ccs

Fetch ccs reference by code.

Returns:



18
19
20
# File 'lib/cnccs/ccs.rb', line 18

def ccs
  Ccs.new @ccs_code
end