Class: Opencrx::Session
Instance Method Summary collapse
- #get(url, options = {}) ⇒ Object
-
#initialize(base_url, user, password) ⇒ Session
constructor
A new instance of Session.
- #post(url, options = {}) ⇒ Object
- #put(url, options = {}) ⇒ Object
Constructor Details
#initialize(base_url, user, password) ⇒ Session
Returns a new instance of Session.
29 30 31 32 |
# File 'lib/opencrx.rb', line 29 def initialize(base_url, user, password) self.class.base_uri(base_url) self.class.basic_auth(user, password) end |
Instance Method Details
#get(url, options = {}) ⇒ Object
34 35 36 |
# File 'lib/opencrx.rb', line 34 def get(url, = {}) self.class.get(url, ) end |
#post(url, options = {}) ⇒ Object
42 43 44 |
# File 'lib/opencrx.rb', line 42 def post(url, = {}) self.class.post(url, ) end |
#put(url, options = {}) ⇒ Object
38 39 40 |
# File 'lib/opencrx.rb', line 38 def put(url, = {}) self.class.put(url, ) end |