lib/zendesk_api/actions.rb
# Create a resource given the attributes passed in.
# @param [Client] client The {Client} object to be used
# @param [Hash] attributes The attributes to create.
Create a resource given the attributes passed in.
Create a resource given the attributes passed in .
def create(client, attributes = {})
        ZendeskAPI::Client.check_deprecated_namespace_usage attributes, singular_resource_name
        resource = new(client, attributes)
        return unless resource.save
        resource
      end
def create ( client , attributes = { } ) ZendeskAPI :: Client . check_deprecated_namespace_usage attributes , singular_resource_name resource = new ( client , attributes ) return unless resource . save resource end
Create a resource given the attributes passed in.
Create a resource given the attributes passed in .
client
<not_specific>
attributes
<not_specific>
<not_specific>
attributes The attributes to create.
attributes The attributes to create .