Sha256: 84faa1a4b3470a0a5697015fac7a5fed9794c4b1fba4337f11713fa1356effb9

Contents?: true

Size: 1.07 KB

Versions: 1

Compression:

Stored size: 1.07 KB

Contents

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

require 'App42Response.rb'

#
#
# 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_SDK-0.8.3 lib/email/Email.rb