class Twocheckout::Company
Public Class Methods
new()
click to toggle source
Returns company info
Calls superclass method
# File lib/twocheckout/company.rb, line 10 def initialize response = Twocheckout::API.request(:get, 'acct/detail_company_info') super(response['vendor_company_info']) end
Public Instance Methods
contact_info()
click to toggle source
Returns contact info
# File lib/twocheckout/company.rb, line 18 def contact_info if @contact_info.nil? response = Twocheckout::API.request(:get, 'acct/detail_contact_info') @contact_info = HashObject.new(response['vendor_contact_info']) end @contact_info end
Protected Instance Methods
_key()
click to toggle source
# File lib/twocheckout/company.rb, line 28 def _key self.vendor_id end