Class: DTK::Client::PostBody
- Inherits:
-
Hash
- Object
- Hash
- DTK::Client::PostBody
- Defined in:
- lib/auxiliary.rb
Instance Method Summary collapse
-
#initialize(raw = {}) ⇒ PostBody
constructor
A new instance of PostBody.
- #merge(raw) ⇒ Object
- #merge!(raw) ⇒ Object
Constructor Details
#initialize(raw = {}) ⇒ PostBody
Returns a new instance of PostBody.
31 32 33 34 35 36 |
# File 'lib/auxiliary.rb', line 31 def initialize(raw={}) super() unless raw.empty? replace(convert(raw)) end end |
Instance Method Details
#merge(raw) ⇒ Object
37 38 39 |
# File 'lib/auxiliary.rb', line 37 def merge(raw) super(convert(raw)) end |
#merge!(raw) ⇒ Object
40 41 42 |
# File 'lib/auxiliary.rb', line 40 def merge!(raw) super(convert(raw)) end |