Class: Twirp::ClientResp

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(data, error) ⇒ ClientResp



184
185
186
187
# File 'lib/twirp/client.rb', line 184

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

Instance Attribute Details

#dataObject

Returns the value of attribute data.



181
182
183
# File 'lib/twirp/client.rb', line 181

def data
  @data
end

#errorObject

Returns the value of attribute error.



182
183
184
# File 'lib/twirp/client.rb', line 182

def error
  @error
end