Class: StatModule::Fix

Inherits:
JSONable show all
Defined in:
lib/fix.rb

Instance Method Summary collapse

Methods inherited from JSONable

#to_json

Constructor Details

#initialize(location) ⇒ Fix

Returns a new instance of Fix.



6
7
8
# File 'lib/fix.rb', line 6

def initialize(location)
  @location = location
end

Instance Method Details

#locationObject



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

def location
  @location
end

#location=(location) ⇒ Object

Raises:



10
11
12
13
# File 'lib/fix.rb', line 10

def location=(location)
  raise TypeException unless location.is_a?(StatModule::Location)
  @location = location
end

#new_textObject



24
25
26
# File 'lib/fix.rb', line 24

def new_text
  @newText
end

#new_text=(new_text) ⇒ Object

Raises:



19
20
21
22
# File 'lib/fix.rb', line 19

def new_text=(new_text)
  raise TypeException unless new_text.is_a?(String)
  @newText = new_text
end