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.20 lib/portatext/command/api/cnam.rb
portatext-1.5.19 lib/portatext/command/api/cnam.rb
portatext-1.5.18 lib/portatext/command/api/cnam.rb
portatext-1.5.17 lib/portatext/command/api/cnam.rb
portatext-1.5.16 lib/portatext/command/api/cnam.rb
portatext-1.5.15 lib/portatext/command/api/cnam.rb
portatext-1.5.14 lib/portatext/command/api/cnam.rb
portatext-1.5.13 lib/portatext/command/api/cnam.rb
portatext-1.5.12 lib/portatext/command/api/cnam.rb
portatext-1.5.11 lib/portatext/command/api/cnam.rb
portatext-1.5.10 lib/portatext/command/api/cnam.rb
portatext-1.5.9 lib/portatext/command/api/cnam.rb
portatext-1.5.8 lib/portatext/command/api/cnam.rb
portatext-1.5.7 lib/portatext/command/api/cnam.rb
portatext-1.5.6 lib/portatext/command/api/cnam.rb
portatext-1.5.5 lib/portatext/command/api/cnam.rb
portatext-1.5.4 lib/portatext/command/api/cnam.rb
portatext-1.5.3 lib/portatext/command/api/cnam.rb
portatext-1.5.2 lib/portatext/command/api/cnam.rb
portatext-1.5.1 lib/portatext/command/api/cnam.rb