Class: Spamster::Model::Proxy

Inherits:
Object
  • Object
show all
Defined in:
lib/spamster/model/proxy.rb

Instance Method Summary collapse

Constructor Details

#initialize(model) ⇒ Proxy

Returns a new instance of Proxy.



4
5
6
# File 'lib/spamster/model/proxy.rb', line 4

def initialize(model)
  @model = model
end

Instance Method Details

#ham!Object



16
17
18
# File 'lib/spamster/model/proxy.rb', line 16

def ham!
  Spamster.ham!(data)
end

#spam!Object



12
13
14
# File 'lib/spamster/model/proxy.rb', line 12

def spam!
  Spamster.spam!(data)
end

#spam?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/spamster/model/proxy.rb', line 8

def spam?
  Spamster.spam?(data)
end