Class: ZeroClick::Sellers::Deny
- Inherits:
-
Object
- Object
- ZeroClick::Sellers::Deny
- Defined in:
- lib/zeroclick/sellers/contracts.rb
Instance Attribute Summary collapse
-
#reason ⇒ Object
readonly
Returns the value of attribute reason.
-
#response ⇒ Object
readonly
Returns the value of attribute response.
Instance Method Summary collapse
- #allow? ⇒ Boolean
-
#initialize(reason, response) ⇒ Deny
constructor
A new instance of Deny.
Constructor Details
#initialize(reason, response) ⇒ Deny
Returns a new instance of Deny.
144 145 146 147 148 |
# File 'lib/zeroclick/sellers/contracts.rb', line 144 def initialize(reason, response) @reason = reason @response = response freeze end |
Instance Attribute Details
#reason ⇒ Object (readonly)
Returns the value of attribute reason.
142 143 144 |
# File 'lib/zeroclick/sellers/contracts.rb', line 142 def reason @reason end |
#response ⇒ Object (readonly)
Returns the value of attribute response.
142 143 144 |
# File 'lib/zeroclick/sellers/contracts.rb', line 142 def response @response end |
Instance Method Details
#allow? ⇒ Boolean
150 |
# File 'lib/zeroclick/sellers/contracts.rb', line 150 def allow? = false |