Class: Spy::Collection::Entry

Inherits:
Struct
  • Object
show all
Extended by:
ClassMethods
Defined in:
lib/spy/collection/entry.rb

Defined Under Namespace

Modules: ClassMethods

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from ClassMethods

find_object, parse, parse_key

Instance Attribute Details

#method_typeObject

Returns the value of attribute method_type

Returns:

  • (Object)

    the current value of method_type



3
4
5
# File 'lib/spy/collection/entry.rb', line 3

def method_type
  @method_type
end

#msgObject

Returns the value of attribute msg

Returns:

  • (Object)

    the current value of msg



3
4
5
# File 'lib/spy/collection/entry.rb', line 3

def msg
  @msg
end

#receiverObject

Returns the value of attribute receiver

Returns:

  • (Object)

    the current value of receiver



3
4
5
# File 'lib/spy/collection/entry.rb', line 3

def receiver
  @receiver
end

#valueObject

Returns the value of attribute value.



4
5
6
# File 'lib/spy/collection/entry.rb', line 4

def value
  @value
end

Instance Method Details

#==(other) ⇒ Object



10
11
12
# File 'lib/spy/collection/entry.rb', line 10

def ==(other)
  key == other.key
end

#keyObject



6
7
8
# File 'lib/spy/collection/entry.rb', line 6

def key
  "#{receiver.object_id}|#{msg}|#{method_type}"
end