Class: Google::Ads::GoogleAds::WrapperUtil

Inherits:
Object
  • Object
show all
Defined in:
lib/google/ads/google_ads/wrapper_util.rb

Class Method Summary collapse

Class Method Details

.bool(v) ⇒ Object



38
39
40
# File 'lib/google/ads/google_ads/wrapper_util.rb', line 38

def self.bool(v)
  Google::Protobuf::BoolValue.new(value: v)
end

.bytes(v) ⇒ Object



50
51
52
# File 'lib/google/ads/google_ads/wrapper_util.rb', line 50

def self.bytes(v)
  Google::Protobuf::BytesValue.new(value: v)
end

.double(v) ⇒ Object



42
43
44
# File 'lib/google/ads/google_ads/wrapper_util.rb', line 42

def self.double(v)
  Google::Protobuf::DoubleValue.new(value: v)
end

.float(v) ⇒ Object



46
47
48
# File 'lib/google/ads/google_ads/wrapper_util.rb', line 46

def self.float(v)
  Google::Protobuf::FloatValue.new(value: v)
end

.int32(v) ⇒ Object



26
27
28
# File 'lib/google/ads/google_ads/wrapper_util.rb', line 26

def self.int32(v)
  Google::Protobuf::Int32Value.new(value: v)
end

.int64(v) ⇒ Object



30
31
32
# File 'lib/google/ads/google_ads/wrapper_util.rb', line 30

def self.int64(v)
  Google::Protobuf::Int64Value.new(value: v)
end

.string(v) ⇒ Object



34
35
36
# File 'lib/google/ads/google_ads/wrapper_util.rb', line 34

def self.string(v)
  Google::Protobuf::StringValue.new(value: v)
end