Skip to content

Commit

Permalink
Alias Result#object => {output, data}
Browse files Browse the repository at this point in the history
  • Loading branch information
snusnu committed Aug 19, 2014
1 parent adca66d commit 6070ab3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/orc.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ def self.failure(object, status = :failure)
abstract_method :success?
abstract_method :status

attr_reader :object

alias_method :output, :object
alias_method :data, :object

# Result object indicating success along with associated data
class Success < self
include Concord::Public.new(:object)
Expand Down

0 comments on commit 6070ab3

Please sign in to comment.