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