Class: MangoPay::NaturalUser

Inherits:
User show all
Defined in:
lib/mangopay/natural_user.rb

Overview

Class Method Summary collapse

Methods inherited from User

cards, transactions, wallets

Methods included from HTTPCalls::Fetch

included, parse_id_or_filters

Methods included from HTTPCalls::Update

included

Methods included from HTTPCalls::Create

included

Methods inherited from Resource

class_name

Class Method Details

.url(id = nil) ⇒ Object


6
7
8
9
10
11
12
# File 'lib/mangopay/natural_user.rb', line 6

def self.url(id = nil)
  if id
    "#{MangoPay.api_path}/users/natural/#{CGI.escape(id.to_s)}"
  else
    "#{MangoPay.api_path}/users/natural"
  end
end