class Fushin::Models::BTC

Attributes

address[R]

Public Class Methods

new(address) click to toggle source
# File lib/fushin/models/btc.rb, line 7
def initialize(address)
  @address = address
end

Public Instance Methods

title() click to toggle source
# File lib/fushin/models/btc.rb, line 11
def title
  "BTC: #{address}"
end
to_attachements() click to toggle source
# File lib/fushin/models/btc.rb, line 19
def to_attachements
  [
    {
      fallback: "bitcoinabuse.com link",
      title: title,
      title_link: bitcoin_abuse_link,
      footer: "bitcoinabuse.com",
      footer_icon: "http://www.google.com/s2/favicons?domain=bitcoinabuse.com"
    }
  ]
end