lib/recurly/resource/pager.rb in recurly-2.5.1 vs lib/recurly/resource/pager.rb in recurly-2.5.2

- old
+ new

@@ -154,9 +154,20 @@ # @see Resource.create def create attributes = {} new(attributes) { |record| record.save } end + # Instantiates a record in the scope of the pager. + # + # @return [Resource] The record. + # @example + # account = Recurly::Account.find 'schrader' + # subscription = account.subscriptions.build attributes + # @see Resource.new + def build attributes = {} + new(attributes) + end + # Instantiates and saves a record in the scope of the pager. # # @return [Resource] The saved record. # @raise [Invalid] The record is invalid. # @raise [Transaction::Error] A monetary transaction failed.