Class: RuplDB::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/rupldb.rb

Instance Method Summary collapse

Constructor Details

#initialize(url: nil) ⇒ Client

Returns a new instance of Client.



3
4
5
6
7
8
9
# File 'lib/rupldb.rb', line 3

def initialize(url: nil)
    if url
        self.url = url
    else
        self.url = ENV["REPLIT_DB_URL"]
    end
end

Instance Method Details

#do_somethingObject



11
12
13
# File 'lib/rupldb.rb', line 11

def do_something
    puts "Done!".freeze
end