Class: NameDrop::Client
- Inherits:
-
Object
- Object
- NameDrop::Client
- Defined in:
- lib/name_drop/client.rb
Instance Method Summary collapse
- #alerts ⇒ Object
- #delete(endpoint) ⇒ Object
- #get(endpoint) ⇒ Object
-
#initialize ⇒ Client
constructor
A new instance of Client.
- #mentions ⇒ Object
- #post(endpoint, attributes) ⇒ Object
- #put(endpoint, attributes) ⇒ Object
- #shares ⇒ Object
Constructor Details
#initialize ⇒ Client
Returns a new instance of Client.
5 6 |
# File 'lib/name_drop/client.rb', line 5 def initialize(*) end |
Instance Method Details
#alerts ⇒ Object
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 |
#mentions ⇒ Object
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 |
#shares ⇒ Object
16 17 18 |
# File 'lib/name_drop/client.rb', line 16 def shares Resources::BaseFactory.new(self, 'Share') end |