Sha256: e0f38c7fb38d9eb9ea2135cf7e552f70a0cc209ae6b0683395332ea208501fed

Contents?: true

Size: 1.08 KB

Versions: 2

Compression:

Stored size: 1.08 KB

Contents

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

    # @macro [attach] virtus_attribute
    #   @return [$2]
    attribute :id,             Integer
    attribute :team,           Integer
    attribute :_type,          String
    attribute :_subtype,       String
    attribute :status,         String
    attribute :forward_only,   Boolean
    attribute :title,          String
    attribute :internal_title, String
    attribute :title_ml,       Hash
    attribute :links,          Hash
    attribute :theme,          Integer
    attribute :blockby,        String
    attribute :languages,      Array
    attribute :statistics,     Array
    attribute :created_on,     DateTime
    attribute :modified_on,    DateTime
    attribute :copy,           Boolean

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

    # @macro collection
    collection :pages

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
survey-gizmo-ruby-1.0.3 lib/survey_gizmo/api/survey.rb
survey-gizmo-ruby-1.0.1 lib/survey_gizmo/api/survey.rb