Module: Legato
- Defined in:
- lib/legato.rb,
lib/legato/cli.rb,
lib/legato/user.rb,
lib/legato/model.rb,
lib/legato/query.rb,
lib/legato/filter.rb,
lib/legato/request.rb,
lib/legato/version.rb,
lib/legato/response.rb,
lib/legato/filter_set.rb,
lib/legato/list_parameter.rb,
lib/legato/core_ext/string.rb,
lib/legato/management/goal.rb,
lib/legato/profile_methods.rb,
lib/legato/management/model.rb,
lib/legato/management/query.rb,
lib/legato/management/finder.rb,
lib/legato/management/account.rb,
lib/legato/management/profile.rb,
lib/legato/management/segment.rb,
lib/legato/management/web_property.rb,
lib/legato/management/account_summary.rb
Defined Under Namespace
Modules: Inflector, Management, Model, OAuth2Helpers, ProfileMethods
Classes: CLI, Filter, FilterSet, ListParameter, Query, Request, Response, User
Constant Summary
collapse
- VERSION =
"0.7.0"
Class Method Summary
collapse
Class Method Details
.and_join_character ⇒ Object
35
36
37
|
# File 'lib/legato.rb', line 35
def self.and_join_character
';'
end
|
27
28
29
30
31
32
33
|
# File 'lib/legato.rb', line 27
def self.format_time(t)
if t.is_a?(String)
t
else
t.strftime('%Y-%m-%d')
end
end
|
.from_ga_string(str) ⇒ Object
23
24
25
|
# File 'lib/legato.rb', line 23
def self.from_ga_string(str)
str.gsub(/ga:|mcf:|rt:/, '')
end
|
.or_join_character ⇒ Object
39
40
41
|
# File 'lib/legato.rb', line 39
def self.or_join_character
','
end
|
.to_ga_string(str, tracking_scope = "ga") ⇒ Object
19
20
21
|
# File 'lib/legato.rb', line 19
def self.to_ga_string(str, tracking_scope = "ga")
"#{$1}#{tracking_scope}:#{$2}" if str.to_s.camelize(:lower) =~ /^(-)?(.*)$/
end
|