Class: MVM::Bridge
- Inherits:
-
Object
- Object
- MVM::Bridge
- Defined in:
- lib/mvm/bridge.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
readonly
Returns the value of attribute client.
Instance Method Summary collapse
- #info ⇒ Object
-
#initialize ⇒ Bridge
constructor
A new instance of Bridge.
- #user(public_key) ⇒ Object
Constructor Details
Instance Attribute Details
#client ⇒ Object (readonly)
Returns the value of attribute client.
5 6 7 |
# File 'lib/mvm/bridge.rb', line 5 def client @client end |
Instance Method Details
#info ⇒ Object
11 12 13 |
# File 'lib/mvm/bridge.rb', line 11 def info client.get '/' end |
#user(public_key) ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'lib/mvm/bridge.rb', line 15 def user(public_key) path = '/users' payload = { public_key: } client.post path, **payload end |