Class: YSM::AdService::AdResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/ysm4r/v1/AdService.rb,
lib/ysm4r/v2/AdService.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ad = nil, editorialReasons = nil, errors = nil, operationSucceeded = nil) ⇒ AdResponse

Returns a new instance of AdResponse.



21
22
23
24
25
26
# File 'lib/ysm4r/v1/AdService.rb', line 21

def initialize(ad = nil, editorialReasons = nil, errors = nil, operationSucceeded = nil)
  @ad = ad
  @editorialReasons = editorialReasons
  @errors = errors
  @operationSucceeded = operationSucceeded
end

Instance Attribute Details

#adObject

Returns the value of attribute ad.



16
17
18
# File 'lib/ysm4r/v1/AdService.rb', line 16

def ad
  @ad
end

#editorialReasonsObject

Returns the value of attribute editorialReasons.



17
18
19
# File 'lib/ysm4r/v1/AdService.rb', line 17

def editorialReasons
  @editorialReasons
end

#errorsObject

Returns the value of attribute errors.



18
19
20
# File 'lib/ysm4r/v1/AdService.rb', line 18

def errors
  @errors
end

#operationSucceededObject

Returns the value of attribute operationSucceeded.



19
20
21
# File 'lib/ysm4r/v1/AdService.rb', line 19

def operationSucceeded
  @operationSucceeded
end