Method: CloudApp::GiftCard.find
- Defined in:
- lib/cloudapp/gift_card.rb
.find(code) ⇒ CloudApp::GiftCard
Get the details of an unredeemed gift card.
Requires authentication.
26 27 28 29 |
# File 'lib/cloudapp/gift_card.rb', line 26 def self.find(code) res = get "/gift_cards/#{code}", :digest_auth => @@auth res.ok? ? GiftCard.new(res) : bad_response(res) end |