Module: Intercom::ExtendedApiOperations::Tags

Included in:
Company, User
Defined in:
lib/intercom/extended_api_operations/tags.rb

Instance Method Summary collapse

Instance Method Details

#tagsObject



7
8
9
10
# File 'lib/intercom/extended_api_operations/tags.rb', line 7

def tags
  collection_name = Utils.resource_class_to_collection_name(self.class)
  self.id ? Intercom::Tag.send("find_all_for_#{collection_name}", :id => id) : []
end