Class: Cobrato::Entities::Base
- Inherits:
-
Object
- Object
- Cobrato::Entities::Base
- Defined in:
- lib/cobrato/entities/base.rb
Direct Known Subclasses
BankAccount, BankBillet, Charge, ChargeConfig, ChargeTemplate, CreditCard, Payee, Payer, RegressCnab, RemittanceCnab, Webhook
Instance Method Summary collapse
Instance Method Details
#url(action) ⇒ Object
10 11 12 13 |
# File 'lib/cobrato/entities/base.rb', line 10 def url(action) link = _links.detect { |l| l["rel"].to_s == action.to_s } || {} link.fetch("href", "") end |