Class: Veryfi::Api::Tag
- Inherits:
-
Object
- Object
- Veryfi::Api::Tag
- Defined in:
- lib/veryfi/api/tag.rb
Instance Attribute Summary collapse
-
#request ⇒ Object
readonly
Returns the value of attribute request.
Instance Method Summary collapse
- #all(params = {}) ⇒ Object
- #delete(id) ⇒ Object
-
#initialize(request) ⇒ Tag
constructor
A new instance of Tag.
Constructor Details
#initialize(request) ⇒ Tag
Returns a new instance of Tag.
8 9 10 |
# File 'lib/veryfi/api/tag.rb', line 8 def initialize(request) @request = request end |
Instance Attribute Details
#request ⇒ Object (readonly)
Returns the value of attribute request.
6 7 8 |
# File 'lib/veryfi/api/tag.rb', line 6 def request @request end |
Instance Method Details
#all(params = {}) ⇒ Object
12 13 14 15 16 |
# File 'lib/veryfi/api/tag.rb', line 12 def all(params = {}) response = request.get("/partner/tags/", params) response["tags"] end |
#delete(id) ⇒ Object
18 19 20 |
# File 'lib/veryfi/api/tag.rb', line 18 def delete(id) request.delete("/partner/tags/#{id}") end |