Class: Twirp::ClientResp
- Inherits:
-
Object
- Object
- Twirp::ClientResp
- Defined in:
- lib/twirp/client.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#error ⇒ Object
Returns the value of attribute error.
Instance Method Summary collapse
-
#initialize(data, error) ⇒ ClientResp
constructor
A new instance of ClientResp.
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
#data ⇒ Object
Returns the value of attribute data.
181 182 183 |
# File 'lib/twirp/client.rb', line 181 def data @data end |
#error ⇒ Object
Returns the value of attribute error.
182 183 184 |
# File 'lib/twirp/client.rb', line 182 def error @error end |