Sha256: eab13a42b69b3783a0c9e2747d4e935a268895ff0c1f9aeba8dd4b43e3fd47bf

Contents?: true

Size: 1.21 KB

Versions: 7

Compression:

Stored size: 1.21 KB

Contents

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

    # @macro [attach] virtus_attribute
    #   @return [$2]
    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

    # @see SurveyGizmo::Resource#to_param_options
    def to_param_options
      {:id => self.id, :survey_id => self.survey_id, :campaign_id => self.campaign_id}
    end
  end
end; end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
survey-gizmo-ruby-1.0.5 lib/survey_gizmo/api/email_message.rb
survey-gizmo-ruby-2.0.1 lib/survey_gizmo/api/email_message.rb
survey-gizmo-ruby-2.0.0 lib/survey_gizmo/api/email_message.rb
survey-gizmo-ruby-1.0.4 lib/survey_gizmo/api/email_message.rb
survey-gizmo-ruby-1.0.3 lib/survey_gizmo/api/email_message.rb
survey-gizmo-ruby-1.0.1 lib/survey_gizmo/api/email_message.rb
survey-gizmo-ruby-0.9.6 lib/survey_gizmo/api/email_message.rb