Class: TC_JSONAddition::MyJsonStruct

Inherits:
Struct show all
Defined in:
lib/crazy_ivan/vendor/json-1.1.7/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



122
123
124
# File 'lib/crazy_ivan/vendor/json-1.1.7/tests/test_json_addition.rb', line 122

def bar
  @bar
end

#fooObject

Returns the value of attribute foo

Returns:

  • (Object)

    the current value of foo



122
123
124
# File 'lib/crazy_ivan/vendor/json-1.1.7/tests/test_json_addition.rb', line 122

def foo
  @foo
end