Advertisement
Guest User

credentials.rb

a guest
Jan 18th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.40 KB | None | 0 0
  1. require 'rest-client'
  2. require 'json'
  3.  
  4.  
  5. module NextcloudCLI
  6.   module Rest
  7.     class Credentials
  8.       def initialize(host, username, password)
  9.         @host = host
  10.         @username = username
  11.         @password = password
  12.       end
  13.  
  14.       def host
  15.         @host
  16.       end
  17.  
  18.       def username
  19.         @username
  20.       end
  21.  
  22.       def password
  23.         @password
  24.       end
  25.     end
  26.   end
  27. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement