Class: Sorenson::Services::Tag
- Inherits:
-
Base
show all
- Defined in:
- lib/sorenson/services/tag.rb
Class Method Summary
collapse
Methods inherited from Base
delete_from, get_from, host, login_no_resource, parse_response, post_to, put_to, verify_account_settings
Class Method Details
.all(order = nil) ⇒ Object
4
5
6
|
# File 'lib/sorenson/services/tag.rb', line 4
def self.all(order = nil)
get_from("/tags#{"?order="+order if order}")
end
|
12
13
14
|
# File 'lib/sorenson/services/tag.rb', line 12
def self.count
get_from("/accounts/#{account_id}/tags/count")["count"]
end
|
.find(tag_name) ⇒ Object
8
9
10
|
# File 'lib/sorenson/services/tag.rb', line 8
def self.find(tag_name)
get_from("/tags/#{tag_name}")
end
|