Class: Veryfi::Api::Tag

Inherits:
Object
  • Object
show all
Defined in:
lib/veryfi/api/tag.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#requestObject (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