Sha256: f0c505496f83efe0e0b2138f26d94562e9c264437c3058b6119abc575dc5552d

Contents?: true

Size: 1018 Bytes

Versions: 29

Compression:

Stored size: 1018 Bytes

Contents

module SurveyGizmo::API
  class Campaign
    include SurveyGizmo::Resource

    attribute :id,              Integer
    attribute :name,            String
    attribute :type,            String
    attribute :_type,           String
    attribute :_subtype,        String
    attribute :__subtype,       String
    attribute :status,          String
    attribute :uri,             String
    attribute :SSL,             Boolean
    attribute :slug,            String
    attribute :language,        String
    attribute :close_message,   String
    attribute :limit_responses, String
    attribute :tokenvariables,  Array
    attribute :survey_id,       Integer
    attribute :datecreated,     DateTime
    attribute :datemodified,    DateTime
    attribute :surveycampaign,  Integer
    attribute :copy,            Boolean

    @route = '/survey/:survey_id/surveycampaign'

    def contacts(conditions = {})
      Contact.all(conditions.merge(children_params).merge(all_pages: !conditions[:page]))
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
survey-gizmo-ruby-7.1.0 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-7.0.0 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.7.0 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.6.0 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.5.1 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.5.0 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.4.1 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.4.0 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.3.2 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.3.1 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.3.0 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.2.13 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.2.12 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.2.11 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.2.10 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.2.9 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.2.6 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.2.5 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.2.4 lib/survey_gizmo/api/campaign.rb
survey-gizmo-ruby-6.2.3 lib/survey_gizmo/api/campaign.rb