Skip to content
This repository has been archived by the owner on Jun 8, 2023. It is now read-only.

Use camelcase instead of classify #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/bing/ads/api/v12/data/report_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class << self
def prepare(type, report_request_raw)
report_request_raw[:columns] = prepare_columns(
columns: report_request_raw[:columns],
type: type.to_s.classify
type: type.to_s.camelcase
)

report_request_raw[:scope] = prepare_scope(
Expand All @@ -48,7 +48,7 @@ def prepare(type, report_request_raw)
:attributes! => {
report_request: {
"xmlns:i" => "http://www.w3.org/2001/XMLSchema-instance",
"i:type" => "#{namespace_identifier}:#{type.to_s.classify}ReportRequest"
"i:type" => "#{namespace_identifier}:#{type.to_s.camelcase}ReportRequest"
}
}
}
Expand Down