Class: AdGear::AdUnit

Inherits:
Base
  • Object
show all
Defined in:
lib/ad_gear/ad_unit.rb

Instance Method Summary collapse

Methods inherited from Base

belongs_to, belongs_to_associations, #encode, has_many, has_many_collections, ignorable_attributes, #initialize, #to_xml

Constructor Details

This class inherits a constructor from AdGear::Base

Instance Method Details

#active?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/ad_gear/ad_unit.rb', line 8

def active?
  state == "active"
end

#deleted?Boolean

Returns:

  • (Boolean)


12
13
14
# File 'lib/ad_gear/ad_unit.rb', line 12

def deleted?
  state == "deleted"
end