Exception: Atom::Pub::ProtocolError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/atom/pub.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(response) ⇒ ProtocolError

Returns a new instance of ProtocolError.



22
23
24
# File 'lib/atom/pub.rb', line 22

def initialize(response)
  @response = response
end

Instance Attribute Details

#responseObject (readonly)

Returns the value of attribute response.



21
22
23
# File 'lib/atom/pub.rb', line 21

def response
  @response
end

Instance Method Details

#to_sObject



26
27
28
# File 'lib/atom/pub.rb', line 26

def to_s
  "Invalid response: #{@response}"
end