Class: RR::RecordedCall
- Inherits:
-
Struct
- Object
- Struct
- RR::RecordedCall
- Defined in:
- lib/rr/recorded_call.rb
Instance Attribute Summary collapse
-
#arguments ⇒ Object
Returns the value of attribute arguments.
-
#block ⇒ Object
Returns the value of attribute block.
-
#keyword_arguments ⇒ Object
Returns the value of attribute keyword_arguments.
-
#method_name ⇒ Object
Returns the value of attribute method_name.
-
#subject ⇒ Object
Returns the value of attribute subject.
Instance Method Summary collapse
Instance Attribute Details
#arguments ⇒ Object
Returns the value of attribute arguments
2 3 4 |
# File 'lib/rr/recorded_call.rb', line 2 def arguments @arguments end |
#block ⇒ Object
Returns the value of attribute block
2 3 4 |
# File 'lib/rr/recorded_call.rb', line 2 def block @block end |
#keyword_arguments ⇒ Object
Returns the value of attribute keyword_arguments
2 3 4 |
# File 'lib/rr/recorded_call.rb', line 2 def keyword_arguments @keyword_arguments end |
#method_name ⇒ Object
Returns the value of attribute method_name
2 3 4 |
# File 'lib/rr/recorded_call.rb', line 2 def method_name @method_name end |
#subject ⇒ Object
Returns the value of attribute subject
2 3 4 |
# File 'lib/rr/recorded_call.rb', line 2 def subject @subject end |
Instance Method Details
#==(other) ⇒ Object
17 18 19 20 21 22 23 |
# File 'lib/rr/recorded_call.rb', line 17 def ==(other) other.is_a?(self.class) && subject == other.subject && method_name == other.method_name && arguments == other.arguments && keyword_arguments == other.keyword_arguments end |
#inspect ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/rr/recorded_call.rb', line 7 def inspect '[%s, %s, %s, %s, %s]' % [ subject_to_s, method_name.inspect, arguments.inspect, keyword_arguments.inspect, block.inspect ] end |