Class: ZeroClick::Sellers::Deny

Inherits:
Object
  • Object
show all
Defined in:
lib/zeroclick/sellers/contracts.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reason, response) ⇒ Deny

Returns a new instance of Deny.



151
152
153
154
155
# File 'lib/zeroclick/sellers/contracts.rb', line 151

def initialize(reason, response)
  @reason = reason
  @response = response
  freeze
end

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



149
150
151
# File 'lib/zeroclick/sellers/contracts.rb', line 149

def reason
  @reason
end

#responseObject (readonly)

Returns the value of attribute response.



149
150
151
# File 'lib/zeroclick/sellers/contracts.rb', line 149

def response
  @response
end

Instance Method Details

#allow?Boolean

Returns:

  • (Boolean)


157
# File 'lib/zeroclick/sellers/contracts.rb', line 157

def allow? = false