Class: MagicWrite::Memberships

Inherits:
Object
  • Object
show all
Defined in:
lib/magicwrite/memberships.rb

Instance Method Summary collapse

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

#companyObject



11
12
13
# File 'lib/magicwrite/memberships.rb', line 11

def company
  client.get(path: '/memberships/company')
end

#userObject



7
8
9
# File 'lib/magicwrite/memberships.rb', line 7

def user
  client.get(path: '/memberships/user')
end