Class: Poundpay::Developer

Inherits:
Resource
  • Object
show all
Defined in:
lib/poundpay/elements.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Resource

#collection_name, collection_path, custom_method_collection_url, element_path, #encode, instantiate_collection, new_element_path

Class Method Details

.meObject



28
29
30
# File 'lib/poundpay/elements.rb', line 28

def self.me
  find(self.user)
end

Instance Method Details

#callback_url=(url) ⇒ Object



38
39
40
41
# File 'lib/poundpay/elements.rb', line 38

def callback_url=(url)
  validate_url url
  attributes['callback_url'] = url
end

#charge_permission_callback_url=(url) ⇒ Object



43
44
45
46
# File 'lib/poundpay/elements.rb', line 43

def charge_permission_callback_url=(url)
  validate_url url
  attributes['charge_permission_callback_url'] = url
end

#saveObject



32
33
34
35
36
# File 'lib/poundpay/elements.rb', line 32

def save
  validate_url callback_url
  validate_url charge_permission_callback_url
  super
end