Module: OrigenTesters::ATP::FlowAPI
Instance Method Summary collapse
- #atp ⇒ Object
- #atp=(atp) ⇒ Object
- #hi_limit(value, options) ⇒ Object
- #limit(value, options) ⇒ Object
- #lo_limit(value, options) ⇒ Object
Instance Method Details
#atp ⇒ Object
7 8 9 |
# File 'lib/origen_testers/atp/flow_api.rb', line 7 def atp @atp end |
#atp=(atp) ⇒ Object
3 4 5 |
# File 'lib/origen_testers/atp/flow_api.rb', line 3 def atp=(atp) @atp = atp end |
#hi_limit(value, options) ⇒ Object
35 36 37 38 39 40 41 42 |
# File 'lib/origen_testers/atp/flow_api.rb', line 35 def hi_limit(value, ) { value: value, rule: [:rule] || :lte, units: [:units], selector: [:selector] || [:test_mode] } end |
#limit(value, options) ⇒ Object
44 45 46 47 48 49 50 51 52 53 54 |
# File 'lib/origen_testers/atp/flow_api.rb', line 44 def limit(value, ) unless [:rule] fail 'You must supply option :rule (e.g. rule: :gt) when calling the limit helper' end { value: value, rule: [:rule] || :lt, units: [:units], selector: [:selector] || [:test_mode] } end |
#lo_limit(value, options) ⇒ Object
26 27 28 29 30 31 32 33 |
# File 'lib/origen_testers/atp/flow_api.rb', line 26 def lo_limit(value, ) { value: value, rule: [:rule] || :gte, units: [:units], selector: [:selector] || [:test_mode] } end |