Sha256: 9e99b7dcb088c7424d92b7977cf318e5e8de72a03b8290e749e7ec51805518b5

Contents?: true

Size: 1.21 KB

Versions: 6

Compression:

Stored size: 1.21 KB

Contents

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

    # @macro [attach] virtus_attribute
    #   @return [$2]
    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/:id', :via => [:get, :update, :delete]
    route '/survey/:survey_id/surveycampaign', :via => :create

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

Version data entries

6 entries across 6 versions & 1 rubygems

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