Recurly_Addon::get PHP Method

get() public static method

public static get ( $planCode, $addonCode, $client = null )
    public static function get($planCode, $addonCode, $client = null)
    {
        return Recurly_Base::_get(Recurly_Addon::uriForAddOn($planCode, $addonCode), $client);
    }

Usage Example

 public function testDelete()
 {
     $this->client->addResponse('DELETE', 'https://api.recurly.com/v2/plans/gold/add_ons/ipaddresses', 'addons/destroy-204.xml');
     $addon = Recurly_Addon::get('gold', 'ipaddresses', $this->client);
     $this->assertInstanceOf('Recurly_Addon', $addon);
     $addon->delete();
 }