class PayjpMock::Response::List
Constants
- OBJECT
Public Class Methods
new(path, count: 3) { || ... }
click to toggle source
# File lib/payjp_mock/response/list.rb, line 5 def initialize(path, count: 3) @attributes = { count: 0, data: [], has_more: false, object: OBJECT, url: "/#{PayjpMock::Request::API_VERSION}" + path } return unless block_given? @attributes[:count] = count @attributes[:data] = count.times.map { yield.to_h } end
Public Instance Methods
status()
click to toggle source
# File lib/payjp_mock/response/list.rb, line 19 def status 200 end