Class: Delayer::Deferred::Response::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/delayer/deferred/response.rb

Direct Known Subclasses

Ng, Ok

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value) ⇒ Base

Returns a new instance of Base.


6
7
8
# File 'lib/delayer/deferred/response.rb', line 6

def initialize(value)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value


5
6
7
# File 'lib/delayer/deferred/response.rb', line 5

def value
  @value
end

Instance Method Details

#ng?Boolean

Returns:

  • (Boolean)

10
11
12
# File 'lib/delayer/deferred/response.rb', line 10

def ng?
  !ok?
end