Class: Twirp::ClientResp

Inherits:
Object
  • Object
show all
Defined in:
lib/twirp/client_resp.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, error) ⇒ ClientResp

Returns a new instance of ClientResp.



6
7
8
9
# File 'lib/twirp/client_resp.rb', line 6

def initialize(data, error)
  @data = data
  @error = error
end

Instance Attribute Details

#dataObject

Returns the value of attribute data.



3
4
5
# File 'lib/twirp/client_resp.rb', line 3

def data
  @data
end

#errorObject

Returns the value of attribute error.



4
5
6
# File 'lib/twirp/client_resp.rb', line 4

def error
  @error
end