class Paggi::Customer

Attributes

cards[RW]
description[RW]
document[RW]
email[RW]
metadata[RW]
name[RW]
phone[RW]

Public Class Methods

new(attributes = {}) click to toggle source
Calls superclass method
# File lib/paggi/customer.rb, line 8
def initialize(attributes = {})
  super(attributes)
  @cards = @cards.nil? ? [] : @cards.map{ |card| Card.new(card) }
end

Public Instance Methods

to_json() click to toggle source
Calls superclass method
# File lib/paggi/customer.rb, line 13
def to_json
  super.merge!(super([
    :phone,
    :name,
    :document,
    :email,
    :metadata,
    :description,
    :cards
  ]))
end