Class: NS1::Response::Base

Inherits:
SimpleDelegator
  • Object
show all
Defined in:
lib/ns1/response/base.rb

Direct Known Subclasses

Error, Success

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(body, status) ⇒ Base

Returns a new instance of Base.



8
9
10
11
# File 'lib/ns1/response/base.rb', line 8

def initialize(body, status)
  @status = status
  super(body)
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



6
7
8
# File 'lib/ns1/response/base.rb', line 6

def status
  @status
end