Class: Hessian2::TypeWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/hessian2/type_wrapper.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

Returns the value of attribute hessian_type.



3
4
5
# File 'lib/hessian2/type_wrapper.rb', line 3

def hessian_type
  @hessian_type
end

#objectObject

Returns the value of attribute object.



3
4
5
# File 'lib/hessian2/type_wrapper.rb', line 3

def object
  @object
end