Sha256: d0f0f7289a576730d14bf2b42eb836124cd20d6fb28a647041d3c5fc4cc2f9c5

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

module SurveyGizmo; module API
  # @see SurveyGizmo::Resource::ClassMethods
  class EmailMessage
    include SurveyGizmo::Resource

    attribute :id,                Integer
    attribute :survey_id,         Integer
    attribute :campaign_id,       Integer
    attribute :invite_identity,   Integer
    attribute :_type,             String
    attribute :_subtype,          String
    attribute :subject,           String
    attribute :replies,           String
    attribute :messagetype,       String
    attribute :medium,            String
    attribute :status,            String
    attribute :from,              Hash
    attribute :body,              Hash
    attribute :send,              Boolean
    attribute :datecreated,       DateTime
    attribute :datemodified,      DateTime

    route '/survey/:survey_id/surveycampaign/:campaign_id/emailmessage/:id', :via => [:get, :update, :delete]
    route '/survey/:survey_id/surveycampaign/:campaign_id/emailmessage', :via => :create

    def to_param_options
      { id: self.id, survey_id: self.survey_id, campaign_id: self.campaign_id }
    end
  end
end; end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
survey-gizmo-ruby-4.1.0 lib/survey_gizmo/api/email_message.rb
survey-gizmo-ruby-4.0.0 lib/survey_gizmo/api/email_message.rb
survey-gizmo-ruby-3.0.3 lib/survey_gizmo/api/email_message.rb