Module: YSM

Defined in:
lib/ysm4r/client.rb,
lib/ysm4r/service.rb,
lib/ysm4r/v1/AdServiceMappingRegistry.rb,
lib/ysm4r/v2/AdServiceMappingRegistry.rb,
lib/ysm4r/v1/AccountServiceMappingRegistry.rb,
lib/ysm4r/v1/AdGroupServiceMappingRegistry.rb,
lib/ysm4r/v1/KeywordServiceMappingRegistry.rb,
lib/ysm4r/v1/UpgradeServiceMappingRegistry.rb,
lib/ysm4r/v2/AccountServiceMappingRegistry.rb,
lib/ysm4r/v2/AdGroupServiceMappingRegistry.rb,
lib/ysm4r/v2/CompanyServiceMappingRegistry.rb,
lib/ysm4r/v2/KeywordServiceMappingRegistry.rb,
lib/ysm4r/v2/UpgradeServiceMappingRegistry.rb,
lib/ysm4r/v1/CampaignServiceMappingRegistry.rb,
lib/ysm4r/v1/ForecastServiceMappingRegistry.rb,
lib/ysm4r/v1/LocationServiceMappingRegistry.rb,
lib/ysm4r/v2/CampaignServiceMappingRegistry.rb,
lib/ysm4r/v2/ForecastServiceMappingRegistry.rb,
lib/ysm4r/v2/LocationServiceMappingRegistry.rb,
lib/ysm4r/v1/BudgetingServiceMappingRegistry.rb,
lib/ysm4r/v2/BudgetingServiceMappingRegistry.rb,
lib/ysm4r/v1/BasicReportServiceMappingRegistry.rb,
lib/ysm4r/v2/BasicReportServiceMappingRegistry.rb,
lib/ysm4r/v1/ExcludedWordsServiceMappingRegistry.rb,
lib/ysm4r/v1/MasterAccountServiceMappingRegistry.rb,
lib/ysm4r/v2/ExcludedWordsServiceMappingRegistry.rb,
lib/ysm4r/v2/MasterAccountServiceMappingRegistry.rb,
lib/ysm4r/v1/BidInformationServiceMappingRegistry.rb,
lib/ysm4r/v1/UserManagementServiceMappingRegistry.rb,
lib/ysm4r/v2/BidInformationServiceMappingRegistry.rb,
lib/ysm4r/v2/UserManagementServiceMappingRegistry.rb,
lib/ysm4r/v1/KeywordResearchServiceMappingRegistry.rb,
lib/ysm4r/v1/sandbox/UpgradeServiceMappingRegistry.rb,
lib/ysm4r/v2/KeywordResearchServiceMappingRegistry.rb,
lib/ysm4r/v2/sandbox/UpgradeServiceMappingRegistry.rb,
lib/ysm4r/v1/sandbox/LocationServiceMappingRegistry.rb,
lib/ysm4r/v2/sandbox/LocationServiceMappingRegistry.rb

Defined Under Namespace

Modules: AccountService, AdGroupService, AdService, BasicReportService, BidInformationService, BudgetingService, CampaignService, CompanyService, ExcludedWordsService, ForecastService, KeywordResearchService, KeywordService, LocationService, MasterAccountService, UpgradeService, UserManagementService Classes: Client, Config, Service

Constant Summary collapse

SandBoxServices =
['Location', 'Upgrade']
VersionServices =
{
  1 => [
    'MasterAccount', 'Account', 'UserManagement', 'Location', 'Upgrade',
    'Campaign', 'AdGroup', 'Ad', 'Keyword', 'ExcludedWords',
    'BidInformation', 'Forecast', 'KeywordResearch', 'Budgeting',
    'BasicReport'],
  2 => [
    'Company', 'MasterAccount', 'Account', 'UserManagement',
    'Location', 'Upgrade', 'Campaign', 'AdGroup', 'Ad', 'Keyword',
    'ExcludedWords', 'BidInformation', 'Forecast', 'KeywordResearch',
    'Budgeting', 'BasicReport']
}

Class Method Summary collapse

Class Method Details

.fix_case_down(name) ⇒ Object



115
116
117
118
# File 'lib/ysm4r/client.rb', line 115

def fix_case_down(name)
  (newname = name.dup)[0] = name[0,1].downcase
  newname
end

.fix_case_up(name) ⇒ Object



110
111
112
113
# File 'lib/ysm4r/client.rb', line 110

def fix_case_up(name)
  (newname = name.dup)[0] = name[0,1].upcase # upper first character
  newname
end