Sha256: 3044f52f785c3b71ddba05ed65b6425767fc2e73add8b61e6d5969414ca87a31

Contents?: true

Size: 1.08 KB

Versions: 1

Compression:

Stored size: 1.08 KB

Contents

# -----------------------------------------------------------------------
#  Copyright © 2012 ShepHertz Technologies Pvt Ltd. All rights reserved.
# -----------------------------------------------------------------------

require 'App42_Ruby_API/App42Response'

#
#
# This Email object is the value object which contains the properties of Email.
#
#

module App42
  module Email
    class Email < App42Response
      attr_accessor :from, :to, :subject, :body, :configList
      @from
      @to
      @subject
      @body
      @configList = Array.new()
    end

    class Configuration
      attr_accessor :emailId, :host, :port, :ssl
      @emailId
      @host
      @port
      @ssl
      #
      # This is a constructor that takes no parameter
      #
      #
      def initialize(email)
        email.configList.push(self)
      end

      #
      # Returns the Cart Response in JSON format.
      #
      # @return the response in JSON format.
      #
      #

      def to_s
        return "Email : #{@emailId}" + "Host : #{@host}" + "port : #{@port}" + "ssl : #{@ssl}";
      end

    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
App42_Ruby_API-0.8.4 lib/email/Email.rb