Class: UpiLink::IntentLink
- Inherits:
-
Object
- Object
- UpiLink::IntentLink
- Defined in:
- lib/upi_link/intent_link.rb
Class Method Summary collapse
Class Method Details
.for(upi_uri) ⇒ Object
3 4 5 6 7 |
# File 'lib/upi_link/intent_link.rb', line 3 def self.for(upi_uri) # Thin wrapper - the upi:// URI works directly as an href on mobile # Browser/OS handles the app picker natively upi_uri end |
.html_link(upi_uri, label: "Pay Now") ⇒ Object
9 10 11 |
# File 'lib/upi_link/intent_link.rb', line 9 def self.html_link(upi_uri, label: "Pay Now") %(<a href="#{upi_uri}">#{label}</a>) end |