class PayjpMock::Response::Resource::Base

Public Class Methods

new(attributes = {}) click to toggle source
# File lib/payjp_mock/response/resource/base.rb, line 6
def initialize(attributes = {})
  @attributes = default_attributes
  set(attributes.symbolize_keys)
end

Public Instance Methods

canonicalize(key, value) click to toggle source
# File lib/payjp_mock/response/resource/base.rb, line 18
def canonicalize(key, value)
  { key => value }
end
set(attributes) click to toggle source
# File lib/payjp_mock/response/resource/base.rb, line 11
def set(attributes)
  attributes.each do |k, v|
    @attributes.merge!(canonicalize(k, v))
  end
  self
end
status() click to toggle source
# File lib/payjp_mock/response/resource/base.rb, line 22
def status
  200
end