Class: Mrweb::HashCheck
- Inherits:
-
Object
- Object
- Mrweb::HashCheck
- Defined in:
- lib/mrweb.rb
Instance Method Summary collapse
-
#initialize ⇒ HashCheck
constructor
A new instance of HashCheck.
- #tomochain(thash) ⇒ Object
- #tron(thash) ⇒ Object
Constructor Details
#initialize ⇒ HashCheck
Returns a new instance of HashCheck.
298 299 300 |
# File 'lib/mrweb.rb', line 298 def initialize @version = "1.7" end |
Instance Method Details
#tomochain(thash) ⇒ Object
308 309 310 311 312 |
# File 'lib/mrweb.rb', line 308 def tomochain(thash) api = Net::HTTP.get(URI("https://mrapiweb.ir/api/cryptocheck/tomochain.php?hash=#{thash}")) tomo = JSON.parse(api) return tomo end |
#tron(thash) ⇒ Object
302 303 304 305 306 |
# File 'lib/mrweb.rb', line 302 def tron(thash) api = Net::HTTP.get(URI("https://mrapiweb.ir/api/cryptocheck/tron.php?hash=#{thash}")) tron = JSON.parse(api) return tron end |