Class: Representable::JSON::TextBinding

Inherits:
Binding
  • Object
show all
Defined in:
lib/representable/bindings/json_bindings.rb

Overview

Represents plain key-value.

Instance Attribute Summary

Attributes inherited from Binding

#definition

Instance Method Summary collapse

Methods inherited from Binding

#initialize, #value_in

Constructor Details

This class inherits a constructor from Representable::JSON::Binding

Instance Method Details

#update_json(hash, value) ⇒ Object



32
33
34
# File 'lib/representable/bindings/json_bindings.rb', line 32

def update_json(hash, value)
  hash[name] = value
end