lib/runcible/resources/consumer.rb in runcible-1.7.2 vs lib/runcible/resources/consumer.rb in runcible-1.8.0
- old
+ new
@@ -5,10 +5,10 @@
# Generates the API path for Consumers
#
# @param [String] id the ID of the consumer
# @return [String] the consumer path, may contain the id if passed
def self.path(id = nil)
- (id.nil?) ? 'consumers/' : "consumers/#{id}/"
+ id.nil? ? 'consumers/' : "consumers/#{id}/"
end
# Creates a consumer
#
# @param [String] id the ID of the consumer