lib/spf/request.rb in spf-0.0.25 vs lib/spf/request.rb in spf-0.0.26

- old
+ new

@@ -24,11 +24,11 @@ @opt = options @state = {} @versions = options[:versions] @scope = options[:scope] || :mfrom @scope = @scope.to_sym if String === @scope - @_authority_domain = options[:authority_domain] + @authority_domain = options[:authority_domain] @identity = options[:identity] @ip_address = options[:ip_address] @helo_identity = options[:helo_identity] @root_request = self @super_request = self @@ -110,18 +110,18 @@ raise SPF::InvalidOptionValueError.new("Unexpected IP address version"); end end def new_sub_request(options) - obj = self.class.new(opt.merge(options)) + obj = self.class.new(@opt.merge(options)) obj.super_request = self obj.root_request = super_request.root_request @sub_requests << obj return obj end def authority_domain - return (@_authority_domain or @domain) + return (@authority_domain or @domain) end def state(field, value = nil) unless field raise SPF::OptionRequiredError.new('Field name required')