lib/vindetta/generator.rb in vindetta-0.16.0 vs lib/vindetta/generator.rb in vindetta-0.17.0
- old
+ new
@@ -1,9 +1,29 @@
-require "net/http"
-
module Vindetta
class Generator
+ def self.vin(options = {})
+ generate(options)
+ end
+
def self.generate(_options = {})
- Net::HTTP.get("randomvin.com", "/getvin.php")
+ fetch
+ end
+
+ def self.wmi(_options = {})
+ fetch[0..2]
+ end
+
+ def self.vds(_options = {})
+ fetch[3..8]
+ end
+
+ def self.vis(_options = {})
+ fetch[9..16]
+ end
+
+ private
+
+ def self.fetch(_options = {})
+ Api.generate
end
end
end