Module: JSONDecoder::Node
- Defined in:
- lib/motion_json_decoder/node.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
8 9 10 |
# File 'lib/motion_json_decoder/node.rb', line 8 def self.included(base) base.send :extend, ClassMethods end |
Instance Method Details
#initialize(json) ⇒ Object
4 5 6 |
# File 'lib/motion_json_decoder/node.rb', line 4 def initialize(json) self.json = json end |
#links ⇒ Object
41 42 43 |
# File 'lib/motion_json_decoder/node.rb', line 41 def links json[:_links] end |