Method: OandaAPI::ResourceBase#to_json
- Defined in:
- lib/oanda_api/resource_base.rb
#to_json(*args) ⇒ String
Serializes an instance as JSON.
26 27 28 |
# File 'lib/oanda_api/resource_base.rb', line 26 def to_json(*args) JSON.generate @_attributes.merge(custom_attributes), *args end |