Sha256: 4802acf8984cc2221513b49de1ba75ad50bdf6d58510992bb401b37d584ca720

Contents?: true

Size: 457 Bytes

Versions: 13

Compression:

Stored size: 457 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.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

13 entries across 13 versions & 2 rubygems

Version Path
maestrano-0.11.0 lib/maestrano/api/operation/create.rb
maestrano-0.10.0 lib/maestrano/api/operation/create.rb
maestrano-0.9.2 lib/maestrano/api/operation/create.rb
maestrano-0.9.1 lib/maestrano/api/operation/create.rb
maestrano-0.9.0 lib/maestrano/api/operation/create.rb
maestrano-ruby-test-0.8.3 lib/maestrano/api/operation/create.rb
maestrano-0.8.2 lib/maestrano/api/operation/create.rb
maestrano-0.8.1 lib/maestrano/api/operation/create.rb
maestrano-0.8.0 lib/maestrano/api/operation/create.rb
maestrano-0.7.0 lib/maestrano/api/operation/create.rb
maestrano-0.6.0 lib/maestrano/api/operation/create.rb
maestrano-0.5.0 lib/maestrano/api/operation/create.rb
maestrano-0.4.0 lib/maestrano/api/operation/create.rb