Module: ExpectationSerializer
- Defined in:
- lib/expectation_serializer.rb
Instance Attribute Summary collapse
-
#batch ⇒ Object
Returns the value of attribute batch.
-
#output ⇒ Object
Returns the value of attribute output.
Instance Method Summary collapse
Instance Attribute Details
#batch ⇒ Object
Returns the value of attribute batch.
2 3 4 |
# File 'lib/expectation_serializer.rb', line 2 def batch @batch end |
#output ⇒ Object
Returns the value of attribute output.
2 3 4 |
# File 'lib/expectation_serializer.rb', line 2 def output @output end |
Instance Method Details
#expected_response_root ⇒ Object
10 11 12 |
# File 'lib/expectation_serializer.rb', line 10 def expected_response_root "#{Rails.root}/tmp" end |
#file_path ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/expectation_serializer.rb', line 3 def file_path if respond_to? 'delegate' delegate.class.to_s.split('::').join('/') else self.class.to_s.split('::').join('/') end end |
#meth_name ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/expectation_serializer.rb', line 13 def meth_name if respond_to? 'delegate' delegate.method_name else method_name end end |