lib/survey_gizmo/api/survey_campaign.rb in survey-gizmo-ruby-2.0.1 vs lib/survey_gizmo/api/survey_campaign.rb in survey-gizmo-ruby-3.0.3

- old
+ new

@@ -1,12 +1,10 @@ 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 @@ -26,11 +24,10 @@ 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} + { id: self.id, survey_id: self.survey_id } end end -end; end \ No newline at end of file +end; end