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.



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

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

Instance Attribute Details

#reasonObject (readonly)

Returns the value of attribute reason.



146
147
148
# File 'lib/zeroclick/sellers/contracts.rb', line 146

def reason
  @reason
end

#responseObject (readonly)

Returns the value of attribute response.



146
147
148
# File 'lib/zeroclick/sellers/contracts.rb', line 146

def response
  @response
end

Instance Method Details

#allow?Boolean

Returns:

  • (Boolean)


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

def allow? = false