lib/relevance/tarantula/form.rb in relevance-tarantula-0.2.1 vs lib/relevance/tarantula/form.rb in relevance-tarantula-0.3.2
- old
+ new
@@ -1,10 +1,12 @@
class Relevance::Tarantula::Form
extend Forwardable
def_delegators("@tag", :search)
- def initialize(tag)
- @tag = tag
+ attr_accessor :crawler, :referrer
+
+ def initialize(tag, crawler, referrer)
+ @tag, @crawler, @referrer = tag, crawler, referrer
end
def action
@tag['action'].downcase
end