Class: Hessian2::TypeWrapper
- Inherits:
-
Object
- Object
- Hessian2::TypeWrapper
- Defined in:
- lib/hessian2/type_wrapper.rb
Instance Attribute Summary collapse
-
#hessian_type ⇒ Object
Returns the value of attribute hessian_type.
-
#object ⇒ Object
Returns the value of attribute object.
Instance Method Summary collapse
-
#initialize(hessian_type, object) ⇒ TypeWrapper
constructor
A new instance of TypeWrapper.
Constructor Details
#initialize(hessian_type, object) ⇒ TypeWrapper
Returns a new instance of TypeWrapper.
4 5 6 7 |
# File 'lib/hessian2/type_wrapper.rb', line 4 def initialize(hessian_type, object) @hessian_type = hessian_type.is_a?(Array) ? ('[' + unify_type(hessian_type.first)) : unify_type(hessian_type) @object = object end |
Instance Attribute Details
#hessian_type ⇒ Object
Returns the value of attribute hessian_type.
3 4 5 |
# File 'lib/hessian2/type_wrapper.rb', line 3 def hessian_type @hessian_type end |
#object ⇒ Object
Returns the value of attribute object.
3 4 5 |
# File 'lib/hessian2/type_wrapper.rb', line 3 def object @object end |