Module: Animoto::Support::StandardEnvelope::InstanceMethods
- Defined in:
- lib/animoto/support/standard_envelope.rb
Instance Method Summary collapse
-
#payload_key ⇒ String
Returns the payload key for this class, i.e.
-
#unpack_standard_envelope(body) ⇒ Hash{Symbol=>Object}
Calls the class-level unpack_standard_envelope method.
Instance Method Details
#payload_key ⇒ String
Returns the payload key for this class, i.e. the name of the key inside the ‘payload’ object of the standard envelope where this resource’s information is.
50 51 52 |
# File 'lib/animoto/support/standard_envelope.rb', line 50 def payload_key self.class.payload_key end |
#unpack_standard_envelope(body) ⇒ Hash{Symbol=>Object}
Calls the class-level unpack_standard_envelope method.
42 43 44 |
# File 'lib/animoto/support/standard_envelope.rb', line 42 def unpack_standard_envelope body self.class.unpack_standard_envelope body end |