Class: StatModule::Fix

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

Constant Summary

Constants inherited from JSONable

JSONable::FORMATTING_BALL, JSONable::FORMATTING_CHECKMARK, JSONable::FORMATTING_STAR, JSONable::FORMATTING_WARNING

Instance Method Summary collapse

Methods inherited from JSONable

from_json!, #to_json

Constructor Details

#initialize(location, hash = nil) ⇒ Fix

Returns a new instance of Fix.



6
7
8
9
10
11
12
# File 'lib/fix.rb', line 6

def initialize(location, hash = nil)
  if hash.is_a? Hash
    super(hash)
    return
  end
  @location = location
end

Instance Method Details

#locationObject



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

def location
  @location
end

#location=(location) ⇒ Object

Raises:



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

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

#new_textObject



28
29
30
# File 'lib/fix.rb', line 28

def new_text
  @newText
end

#new_text=(new_text) ⇒ Object

Raises:



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

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