Class: Glaemscribe::API::SubRule

Inherits:
Object
  • Object
show all
Defined in:
lib/api/sub_rule.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rule, src_combination, dst_combination) ⇒ SubRule

Returns a new instance of SubRule.



29
30
31
32
# File 'lib/api/sub_rule.rb', line 29

def initialize(rule, src_combination, dst_combination)
  @src_combination = src_combination
  @dst_combination = dst_combination     
end

Instance Attribute Details

#dst_combinationObject (readonly)

Returns the value of attribute dst_combination.



27
28
29
# File 'lib/api/sub_rule.rb', line 27

def dst_combination
  @dst_combination
end

#src_combinationObject (readonly)

Returns the value of attribute src_combination.



27
28
29
# File 'lib/api/sub_rule.rb', line 27

def src_combination
  @src_combination
end

Instance Method Details

#pObject



34
35
36
# File 'lib/api/sub_rule.rb', line 34

def p
  "#{@src_combination.inspect} => #{@dst_combination.inspect} \n"
end