Class: Sorenson::Services::Flag

Inherits:
Base show all
Defined in:
lib/sorenson/services/flag.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
7
# File 'lib/sorenson/services/flag.rb', line 4

def self.all(order = nil)
  url = "/flags#{"?order="+order if order}"
  get_from(url)
end

.countObject



9
10
11
# File 'lib/sorenson/services/flag.rb', line 9

def self.count
  get_from("/accounts/#{}/flags/count")["count"]
end