Skip to content

Commit

Permalink
add WasCreated type
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Janowski committed Mar 14, 2013
1 parent dee6ccf commit f06bc66
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
TAGS
*.rbc
Gemfile.lock
.idea
*.iml
Expand Down
6 changes: 5 additions & 1 deletion lib/neography/connection.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module Neography
module WasCreated
end
class Connection

USER_AGENT = "Neography/#{Neography::VERSION}"
Expand Down Expand Up @@ -94,7 +96,9 @@ def evaluate_response(response)
response.parsed_response
when 201
@logger.debug "OK, created #{body}" if @log_enabled
response.parsed_response
r=response.parsed_response
r.extend(WasCreated)
r
when 204
@logger.debug "OK, no content returned" if @log_enabled
nil
Expand Down

0 comments on commit f06bc66

Please sign in to comment.