class PossibleEmail::Response
Public Class Methods
new(profiles)
click to toggle source
# File lib/possible_email/response.rb, line 5 def initialize(profiles) # remove nils created by ResponseGetter @profiles = profiles.compact end
Public Instance Methods
[](*args)
click to toggle source
# File lib/possible_email/response.rb, line 14 def [](*args) @profiles[*args] end
each(&block)
click to toggle source
# File lib/possible_email/response.rb, line 10 def each(&block) @profiles.each(&block) end
method_missing(method, *)
click to toggle source
Calls superclass method
# File lib/possible_email/response.rb, line 18 def method_missing(method, *) respond_to?(method) ? @profiles.send(method) : super end
respond_to?(method, *)
click to toggle source
# File lib/possible_email/response.rb, line 22 def respond_to?(method, *) @profiles.respond_to?(method) end