Class: Contactually::Me

Inherits:
Base
  • Object
show all
Defined in:
lib/contactually/me.rb

Instance Attribute Summary

Attributes inherited from Base

#interface, #url

Instance Method Summary collapse

Methods inherited from Base

#check_implementation, #create, #destroy, implement_list, implements, #list, #list_each

Constructor Details

#initialize(url: '/v2/me', interface: nil) ⇒ Me

Returns a new instance of Me.



5
6
7
8
# File 'lib/contactually/me.rb', line 5

def initialize(url: '/v2/me', interface: nil)
  @url = url
  @interface = interface
end

Instance Method Details

#fetchObject



10
11
12
# File 'lib/contactually/me.rb', line 10

def fetch
  super(nil)
end

#modelObject



18
19
20
# File 'lib/contactually/me.rb', line 18

def model
  Models::User
end

#update(body) ⇒ Object



14
15
16
# File 'lib/contactually/me.rb', line 14

def update(body)
  super(nil, body)
end