zendesk / zendesk_api_client_rb

Official Ruby Zendesk API Client
http://developer.zendesk.com/
Apache License 2.0
387 stars 183 forks source link

Why is UserRelated missing? #372

Closed hkmaly closed 4 years ago

hkmaly commented 5 years ago

Hello, why the gem doesn't include UserRelated for user similarly as there is TicketRelated for tickets? There is API for that and adding it is question of two lines (not counting opening classes as those are already open in code) ... or can be monkey patches like this:

module ZendeskAPI
  unless defined?(UserRelated)
    class UserRelated < DataResource; end
    class User
      has :related, :class => UserRelated
    end
  end
end