./lib/animoto/support/standard_envelope.rb in animoto-1.1.1 vs ./lib/animoto/support/standard_envelope.rb in animoto-1.2.0

- old
+ new

@@ -23,10 +23,11 @@ # @return [Class, nil] the class, or nil if either the payload key or the class couldn't be found def self.find_class_for envelope if payload_key = unpack_base_payload(envelope).keys.first klass_name = payload_key.camelize if /(?:Job|Callback)$/ === klass_name + klass_name.sub!(/(?:Job|Callback)$/, '') Animoto::Resources::Jobs::const_get(klass_name) if Animoto::Resources::Jobs::const_defined?(klass_name) else Animoto::Resources::const_get(klass_name) if Animoto::Resources::const_defined?(klass_name) end end @@ -109,11 +110,9 @@ { :url => unpack_links(body)['self'], :errors => unpack_status(body)['errors'] || [] } end - end - - extend ClassMethods + end end end end \ No newline at end of file