Class: Lightrail::Wrapper::Result
- Inherits:
-
Hash
- Object
- Hash
- Lightrail::Wrapper::Result
- Defined in:
- lib/lightrail/wrapper.rb
Instance Attribute Summary collapse
-
#associations ⇒ Object
readonly
Returns the value of attribute associations.
Instance Method Summary collapse
-
#initialize ⇒ Result
constructor
A new instance of Result.
Constructor Details
#initialize ⇒ Result
Returns a new instance of Result.
6 7 8 9 |
# File 'lib/lightrail/wrapper.rb', line 6 def initialize super @associations = Hash.new { |h,k| h[k] = [] } end |
Instance Attribute Details
#associations ⇒ Object (readonly)
Returns the value of attribute associations.
4 5 6 |
# File 'lib/lightrail/wrapper.rb', line 4 def associations @associations end |