Class: Gobbler::Referral
Instance Attribute Summary
Attributes inherited from Base
Class Method Summary collapse
-
.list ⇒ Array<Referrals>
All referrals.
Methods inherited from Base
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
.list ⇒ Array<Referrals>
Returns 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 |