lib/amazon_sdb/base.rb
def box_usage
        unless block_given?
          @usage.box_usage
        else
          # return the usage of the actions in the block
          usage1 = @usage.box_usage
          yield
          usage2 = @usage.box_usage
          return usage2 - usage1
        end
      end
##
# Returns the Box Usage accumulated since the beginning of the session. Box Usage represents computation time and is one of
# the parameters in your monthly SimpleDB bill. As an alternative, when passed a block (no parameters yielded), it returns 
# the box usage only for the operations within the block.
Returns the Box Usage accumulated since the beginning of the session. Box Usage represents computation time and is one of
the parameters in your monthly SimpleDB bill. As an alternative, when passed a block (no parameters yielded), it returns
the box usage only for the operations within the block.
Returns the Box Usage accumulated since the beginning of the session . Box Usage represents computation time and is one of the parameters in your monthly SimpleDB bill . As an alternative when passed a block ( no parameters yielded ) it returns the box usage only for the operations within the block .
def box_usage
        unless block_given?
          @usage.box_usage
        else
          usage1 = @usage.box_usage
          yield
          usage2 = @usage.box_usage
          return usage2 - usage1
        end
      end
def box_usage unless block_given? @usage . box_usage else usage1 = @usage . box_usage yield usage2 = @usage . box_usage return usage2 - usage1 end end
Returns the Box Usage accumulated since the beginning of the session.
Returns the Box Usage accumulated since the beginning of the session .
# return the usage of the actions in the block