Sha256: 450306860a80cfb19d3ec4715fd16a0d1006c880024d64342d590636bb9a23c3

Contents?: true

Size: 437 Bytes

Versions: 1

Compression:

Stored size: 437 Bytes

Contents

module ActionTexter
  class Configuration
    attr_accessor :from, :to, :endpoint, :path, :product_token, :content_type, :delivery_method

    alias_method :api_key=, :product_token=

    def defaults
      @defaults ||= { from: from, to: to }
    end

    def initialize
      @endpoint = 'https://rest.sms-service.com'
      @path = '/messages'
      @content_type = 'application/json'
      @delivery_method = :test
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
action-texter-0.2.0.pre lib/action_texter/configuration.rb