@@ -266,10 +266,10 @@ def path(options = {})
266266 end
267267
268268 class Topic < Resource
269- has_many :subscriptions , : class => TopicSubscription , : inline => true
270- has_many Tag , : extend => Tag ::Update , : inline => :create
269+ has_many :subscriptions , class : TopicSubscription , inline : true
270+ has_many Tag , extend : Tag ::Update , inline : :create
271271 has_many Attachment
272- has_many :uploads , : class => Attachment , : inline => true
272+ has_many :uploads , class : Attachment , inline : true
273273 end
274274
275275 class Activity < Resource
@@ -326,7 +326,7 @@ class Request < Resource
326326 class Comment < DataResource
327327 include Save
328328
329- has_many :uploads , : class => Attachment , : inline => true
329+ has_many :uploads , class : Attachment , inline : true
330330 has :author , :class => User
331331
332332 def save
@@ -368,7 +368,7 @@ class TicketRelated < DataResource; end
368368 class TicketEvent < DataResource
369369 class Event < Data ; end
370370
371- has_many :child_events , : class => Event
371+ has_many :child_events , class : Event
372372 has Ticket
373373 has :updater , :class => User
374374
@@ -413,8 +413,8 @@ class Event < Data
413413 class Comment < DataResource
414414 include Save
415415
416- has_many :uploads , : class => Attachment , : inline => true
417- has :author , : class => User
416+ has_many :uploads , class : Attachment , inline : true
417+ has :author , class : User
418418
419419 def save
420420 if new_record?
@@ -441,35 +441,35 @@ class << self
441441 has :submitter , :class => User
442442 has :assignee , :class => User
443443
444- has_many :collaborators , : class => User , : inline => true , : extend => ( Module . new do
444+ has_many :collaborators , class : User , inline : true , extend : ( Module . new do
445445 def to_param
446446 map ( &:id )
447447 end
448448 end )
449449
450450 has_many Audit
451- has :metrics , : class => TicketMetric
451+ has :metrics , class : TicketMetric
452452 has Group
453453 has Organization
454454 has Brand
455- has :related , : class => TicketRelated
455+ has :related , class : TicketRelated
456456
457- has Comment , : inline => true
457+ has Comment , inline : true
458458 has_many Comment
459459
460- has :last_comment , : class => Comment , : inline => true
461- has_many :last_comments , : class => Comment , : inline => true
460+ has :last_comment , class : Comment , inline : true
461+ has_many :last_comments , class : Comment , inline : true
462462
463- has_many Tag , : extend => Tag ::Update , : inline => :create
463+ has_many Tag , extend : Tag ::Update , inline : :create
464464
465- has_many :incidents , : class => Ticket
465+ has_many :incidents , class : Ticket
466466
467467 # Gets a incremental export of tickets from the start_time until now.
468468 # @param [Client] client The {Client} object to be used
469469 # @param [Integer] start_time The start_time parameter
470470 # @return [Collection] Collection of {Ticket}
471471 def self . incremental_export ( client , start_time )
472- ZendeskAPI ::Collection . new ( client , self , : path => "incremental/tickets?start_time=#{ start_time . to_i } " )
472+ ZendeskAPI ::Collection . new ( client , self , path : "incremental/tickets?start_time=#{ start_time . to_i } " )
473473 end
474474
475475 # Imports a ticket through the imports/tickets endpoint using save!
@@ -478,7 +478,7 @@ def self.incremental_export(client, start_time)
478478 # @return [Ticket] Created object or nil
479479 def self . import! ( client , attributes )
480480 new ( client , attributes ) . tap do |ticket |
481- ticket . save! ( : path => "imports/tickets" )
481+ ticket . save! ( path : "imports/tickets" )
482482 end
483483 end
484484
@@ -488,7 +488,7 @@ def self.import!(client, attributes)
488488 # @return [Ticket] Created object or nil
489489 def self . import ( client , attributes )
490490 ticket = new ( client , attributes )
491- return unless ticket . save ( : path => "imports/tickets" )
491+ return unless ticket . save ( path : "imports/tickets" )
492492 ticket
493493 end
494494 end
@@ -522,9 +522,9 @@ class ViewRow < DataResource
522522 # @internal Optional columns
523523
524524 has Group
525- has :assignee , : class => User
526- has :requester , : class => User
527- has :submitter , : class => User
525+ has :assignee , class : User
526+ has :requester , class : User
527+ has :submitter , class : User
528528 has Organization
529529
530530 def self . model_key
@@ -671,7 +671,7 @@ def self.cbp_path_regexes
671671 end
672672
673673 class Group < Resource
674- has_many :memberships , : class => GroupMembership , : path => "memberships"
674+ has_many :memberships , class : GroupMembership , path : "memberships"
675675
676676 def self . cbp_path_regexes
677677 [ /groups$/ , %r{groups/assignable$} ]
0 commit comments