Class: DocusignDtr::Room
- Inherits:
-
Object
- Object
- DocusignDtr::Room
- Defined in:
- lib/docusign_dtr/room.rb
Instance Attribute Summary collapse
-
#client ⇒ Object
Returns the value of attribute client.
Instance Method Summary collapse
- #all ⇒ Object
- #create(attrs = {}) ⇒ Object
- #destroy(id) ⇒ Object
- #find(id) ⇒ Object
-
#initialize(client:) ⇒ Room
constructor
A new instance of Room.
- #update(attrs = {}) ⇒ Object
Constructor Details
#initialize(client:) ⇒ Room
Returns a new instance of Room.
5 6 7 |
# File 'lib/docusign_dtr/room.rb', line 5 def initialize(client:) @client = client end |
Instance Attribute Details
#client ⇒ Object
Returns the value of attribute client.
3 4 5 |
# File 'lib/docusign_dtr/room.rb', line 3 def client @client end |
Instance Method Details
#all ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/docusign_dtr/room.rb', line 9 def all @client.get('/rooms')['rooms'].map do |room_attrs| room = DocusignDtr::Models::Room.new(room_attrs) room.client = client room end end |
#create(attrs = {}) ⇒ Object
24 |
# File 'lib/docusign_dtr/room.rb', line 24 def create(attrs = {}) end |
#destroy(id) ⇒ Object
26 |
# File 'lib/docusign_dtr/room.rb', line 26 def destroy(id) end |
#find(id) ⇒ Object
17 18 19 20 21 22 |
# File 'lib/docusign_dtr/room.rb', line 17 def find(id) room_attrs = @client.get("/rooms/#{id}") room = DocusignDtr::Models::Room.new(room_attrs) room.client = client room end |
#update(attrs = {}) ⇒ Object
28 |
# File 'lib/docusign_dtr/room.rb', line 28 def update(attrs = {}) end |