Module: Animoto::Support::StandardEnvelope::InstanceMethods

Defined in:
lib/animoto/support/standard_envelope.rb

Instance Method Summary collapse

Instance Method Details

#payload_keyString

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.

Returns:



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.

Returns:

  • (Hash{Symbol=>Object})

See Also:

  • ClassMethods#unpack_standard_envelope


42
43
44
# File 'lib/animoto/support/standard_envelope.rb', line 42

def unpack_standard_envelope body
  self.class.unpack_standard_envelope body
end