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.



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

#reasonObject (readonly)

Returns the value of attribute reason.



142
143
144
# File 'lib/zeroclick/sellers/contracts.rb', line 142

def reason
  @reason
end

#responseObject (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

Returns:

  • (Boolean)


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

def allow? = false