Class: TC_JSONAddition::MyJsonStruct

Inherits:
Struct show all
Defined in:
lib/vendor/json_pure/tests/test_json_addition.rb

Instance Attribute Summary collapse

Method Summary

Methods inherited from Struct

json_create, #to_json

Instance Attribute Details

#barObject

Returns the value of attribute bar

Returns:

  • (Object)

    the current value of bar



120
121
122
# File 'lib/vendor/json_pure/tests/test_json_addition.rb', line 120

def bar
  @bar
end

#fooObject

Returns the value of attribute foo

Returns:

  • (Object)

    the current value of foo



120
121
122
# File 'lib/vendor/json_pure/tests/test_json_addition.rb', line 120

def foo
  @foo
end