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/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/finder.rb,
lib/legato/management/account.rb,
lib/legato/management/profile.rb,
lib/legato/management/segment.rb,
lib/legato/management/web_property.rb

Defined Under Namespace

Modules: Inflector, Management, Model, OAuth2Helpers, ProfileMethods Classes: CLI, Filter, FilterSet, ListParameter, Query, Response, User

Constant Summary collapse

VERSION =
"0.3.0"

Class Method Summary collapse

Class Method Details

.and_join_characterObject



31
32
33
# File 'lib/legato.rb', line 31

def self.and_join_character
  ';'
end

.format_time(t) ⇒ Object



27
28
29
# File 'lib/legato.rb', line 27

def self.format_time(t)
  t.strftime('%Y-%m-%d')
end

.from_ga_string(str) ⇒ Object



23
24
25
# File 'lib/legato.rb', line 23

def self.from_ga_string(str)
  str.gsub("ga:", '')
end

.or_join_characterObject



35
36
37
# File 'lib/legato.rb', line 35

def self.or_join_character
  ','
end

.to_ga_string(str) ⇒ Object



19
20
21
# File 'lib/legato.rb', line 19

def self.to_ga_string(str)
  "#{$1}ga:#{$2}" if str.to_s.camelize(:lower) =~ /^(-)?(.*)$/
end