Sha256: e7fc28af83c78894b8ac28e8901de3b98488b96baafae33a67d6baf3444179e0

Contents?: true

Size: 624 Bytes

Versions: 30

Compression:

Stored size: 624 Bytes

Contents

module PortaText
  module Command
    module Api
      # The cnam endpoint.
      # https://github.com/PortaText/docs/wiki/REST-API#api_cnam
      #
      # Author::    Marcelo Gornstein (mailto:marcelog@portatext.com)
      # Copyright:: Copyright (c) 2015 PortaText
      # License::   Apache-2.0
      class Cnam < Base
        def for_number(number)
          set :number, number
        end

        def endpoint(_method)
          raise 'DID number cant be null' if @args[:number].nil?
          number = @args[:number]
          @args.delete :number
          "cnam/#{number}"
        end
      end
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
portatext-1.5.0 lib/portatext/command/api/cnam.rb
portatext-1.4.4 lib/portatext/command/api/cnam.rb
portatext-1.4.3 lib/portatext/command/api/cnam.rb
portatext-1.4.2 lib/portatext/command/api/cnam.rb
portatext-1.4.1 lib/portatext/command/api/cnam.rb
portatext-1.4.0 lib/portatext/command/api/cnam.rb
portatext-1.3.1 lib/portatext/command/api/cnam.rb
portatext-1.3.0 lib/portatext/command/api/cnam.rb
portatext-1.2.0 lib/portatext/command/api/cnam.rb
portatext-1.1.11 lib/portatext/command/api/cnam.rb