Class: NameDrop::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/name_drop/client.rb

Instance Method Summary collapse

Constructor Details

#initializeClient

Returns a new instance of Client.


5
6
# File 'lib/name_drop/client.rb', line 5

def initialize(*)
end

Instance Method Details

#alertsObject


8
9
10
# File 'lib/name_drop/client.rb', line 8

def alerts
  Resources::BaseFactory.new(self, 'Alert')
end

#delete(endpoint) ⇒ Object


32
33
34
# File 'lib/name_drop/client.rb', line 32

def delete(endpoint)
  request(:delete, endpoint)
end

#get(endpoint) ⇒ Object


20
21
22
# File 'lib/name_drop/client.rb', line 20

def get(endpoint)
  request(:get, endpoint)
end

#mentionsObject


12
13
14
# File 'lib/name_drop/client.rb', line 12

def mentions
  Resources::BaseFactory.new(self, 'Mention')
end

#post(endpoint, attributes) ⇒ Object


24
25
26
# File 'lib/name_drop/client.rb', line 24

def post(endpoint, attributes)
  request(:post, endpoint, attributes)
end

#put(endpoint, attributes) ⇒ Object


28
29
30
# File 'lib/name_drop/client.rb', line 28

def put(endpoint, attributes)
  request(:put, endpoint, attributes)
end

#sharesObject


16
17
18
# File 'lib/name_drop/client.rb', line 16

def shares
  Resources::BaseFactory.new(self, 'Share')
end