Class: MagicWrite::Memberships
- Inherits:
-
Object
- Object
- MagicWrite::Memberships
- Defined in:
- lib/magicwrite/memberships.rb
Instance Method Summary collapse
- #company ⇒ Object
-
#initialize(client:) ⇒ Memberships
constructor
A new instance of Memberships.
- #user ⇒ Object
Constructor Details
#initialize(client:) ⇒ Memberships
Returns a new instance of Memberships.
3 4 5 |
# File 'lib/magicwrite/memberships.rb', line 3 def initialize(client:) @client = client end |
Instance Method Details
#company ⇒ Object
11 12 13 |
# File 'lib/magicwrite/memberships.rb', line 11 def company client.get(path: '/memberships/company') end |
#user ⇒ Object
7 8 9 |
# File 'lib/magicwrite/memberships.rb', line 7 def user client.get(path: '/memberships/user') end |