Class: AWeber::Resources::Campaign

Inherits:
AWeber::Resource show all
Defined in:
lib/aweber/resources/campaign.rb

Instance Attribute Summary

Attributes inherited from AWeber::Resource

#parent

Instance Method Summary collapse

Methods inherited from AWeber::Resource

#<=>, alias_attribute, api_attr, basepath, #delete, has_many, has_one, #initialize, #inspect, #path, #save, #uri, #writable_attrs

Constructor Details

This class inherits a constructor from AWeber::Resource

Instance Method Details

#is_broadcast?Boolean

Returns:

  • (Boolean)


37
38
39
# File 'lib/aweber/resources/campaign.rb', line 37

def is_broadcast?
  resource_type_link.split("#").last =~ /^broadcast/
end

#is_followup?Boolean

Returns:

  • (Boolean)


33
34
35
# File 'lib/aweber/resources/campaign.rb', line 33

def is_followup?
  resource_type_link.split("#").last =~ /^followup/
end