class Paymill::Client

Attributes

description[RW]
email[RW]
payments[R]
subscriptions[R]

Protected Class Methods

allowed_arguments() click to toggle source
# File lib/paymill/models/client.rb, line 15
def self.allowed_arguments
  [:email, :description]
end
create_with?( incoming_arguments ) click to toggle source
# File lib/paymill/models/client.rb, line 10
def self.create_with?( incoming_arguments )
  return false if mandatory_arguments.select { |a| incoming_arguments.include? a }.size < mandatory_arguments.size
  allowed_arguments.size == ( allowed_arguments | incoming_arguments ).size
end
mandatory_arguments() click to toggle source
# File lib/paymill/models/client.rb, line 19
def self.mandatory_arguments
  []
end