Sha256: 912adae833fdc2a234f9711e8dc18e420b7b39fdeea07f495370ef3e6f5698e1

Contents?: true

Size: 470 Bytes

Versions: 22

Compression:

Stored size: 470 Bytes

Contents

module Maestrano
  module API
    module Operation
      module Create
        module ClassMethods
          def create(params={}, api_token=nil)
            response, api_token = Maestrano::API::Operation::Base[self.preset].request(:post, self.url, api_token, params)
            Util.convert_to_maestrano_object(response, api_token)
          end
        end

        def self.included(base)
          base.extend(ClassMethods)
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
maestrano-1.0.6 lib/maestrano/api/operation/create.rb
maestrano-1.0.5 lib/maestrano/api/operation/create.rb
maestrano-1.0.4 lib/maestrano/api/operation/create.rb
maestrano-1.0.3 lib/maestrano/api/operation/create.rb
maestrano-1.0.2 lib/maestrano/api/operation/create.rb
maestrano-1.0.1 lib/maestrano/api/operation/create.rb
maestrano-1.0.0 lib/maestrano/api/operation/create.rb
maestrano-1.0.0.pre.RC9 lib/maestrano/api/operation/create.rb
maestrano-1.0.0.pre.RC8 lib/maestrano/api/operation/create.rb
maestrano-1.0.0.pre.RC7 lib/maestrano/api/operation/create.rb
maestrano-1.0.0.pre.RC6 lib/maestrano/api/operation/create.rb
maestrano-1.0.0.pre.RC5 lib/maestrano/api/operation/create.rb
maestrano-1.0.0.pre.RC4 lib/maestrano/api/operation/create.rb
maestrano-1.0.0.pre.RC3 lib/maestrano/api/operation/create.rb
maestrano-1.0.0.pre.RC2 lib/maestrano/api/operation/create.rb
maestrano-1.0.0.pre.RC1 lib/maestrano/api/operation/create.rb
maestrano-0.12.5 lib/maestrano/api/operation/create.rb
maestrano-0.12.4 lib/maestrano/api/operation/create.rb
maestrano-0.12.3 lib/maestrano/api/operation/create.rb
maestrano-0.12.2 lib/maestrano/api/operation/create.rb