Sha256: ca9cda1cfcd5815a143753549b8f048152fc9f46b6f9969fb7b59afb44586a40

Contents?: true

Size: 1.9 KB

Versions: 3

Compression:

Stored size: 1.9 KB

Contents

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

    attribute :id,                      Integer
    attribute :survey_id,               Integer
    attribute :campaign_id,             Integer
    attribute :estatus,                 String
    attribute :esubscriberstatus,       String
    attribute :semailaddress,           String
    attribute :sfirstname,              String
    attribute :slastname,               String
    attribute :sorganization,           String
    attribute :sdepartment,             String
    attribute :sbusinessphone,          String
    attribute :shomephone,              String
    attribute :sfaxphone,               String
    attribute :sworkphone,              String
    attribute :smailingaddress,         String
    attribute :smailingaddress2,        String
    attribute :smailingaddresscity,     String
    attribute :smailingaddressstate,    String
    attribute :smailingaddresscountry,  String
    attribute :smailingaddresspostal,   String
    attribute :stitle,                  String
    attribute :surl,                    String
    attribute :scustomfield1,           String
    attribute :scustomfield2,           String
    attribute :scustomfield3,           String
    attribute :scustomfield4,           String
    attribute :scustomfield5,           String
    attribute :scustomfield6,           String
    attribute :scustomfield7,           String
    attribute :scustomfield8,           String
    attribute :scustomfield9,           String
    attribute :scustomfield10,          String

    route '/survey/:survey_id/surveycampaign/:campaign_id/contact/:id', via: [:get, :update, :delete]
    route '/survey/:survey_id/surveycampaign/:campaign_id/contact', 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/contact.rb
survey-gizmo-ruby-4.0.0 lib/survey_gizmo/api/contact.rb
survey-gizmo-ruby-3.0.3 lib/survey_gizmo/api/contact.rb