Class: Gobbler::Referral

Inherits:
Base
  • Object
show all
Defined in:
lib/gobbler/referral.rb

Instance Attribute Summary

Attributes inherited from Base

#json

Class Method Summary collapse

Methods inherited from Base

#base_attr, get, #initialize

Constructor Details

This class inherits a constructor from Gobbler::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Gobbler::Base

Class Method Details

.listArray<Referrals>

Returns All referrals.

Returns:

  • (Array<Referrals>)

    All referrals



10
11
12
# File 'lib/gobbler/referral.rb', line 10

def self.list
  ::Gobbler.request("account/referrals.json")["referrals"].map {|ref| new(ref)}
end