Class: One40Proof::Base

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/one40_proof/simple/base.rb

Direct Known Subclasses

Search, Test, UserAd

Instance Method Summary collapse

Constructor Details

#initialize(url, options = {}) ⇒ Base

Returns a new instance of Base.



11
12
13
# File 'lib/one40_proof/simple/base.rb', line 11

def initialize(url, options={})
  validate_response(Base.get(url, options))
end

Instance Method Details

#action_urlsObject



15
16
17
# File 'lib/one40_proof/simple/base.rb', line 15

def action_urls
  ad.action_urls
end

#bylineObject



31
32
33
# File 'lib/one40_proof/simple/base.rb', line 31

def 
  ad.
end

#image_urlObject



27
28
29
# File 'lib/one40_proof/simple/base.rb', line 27

def image_url
  ad.image_url
end

#statusObject



23
24
25
# File 'lib/one40_proof/simple/base.rb', line 23

def status
  ad.status
end

#textObject



35
36
37
# File 'lib/one40_proof/simple/base.rb', line 35

def text
  ad.text
end

#userObject



19
20
21
# File 'lib/one40_proof/simple/base.rb', line 19

def user
  ad.user
end

#validate_impression!Object



39
40
41
# File 'lib/one40_proof/simple/base.rb', line 39

def validate_impression!
  ad.validate_impression!
end