Class: WufooParty::Entity
- Inherits:
-
Object
- Object
- WufooParty::Entity
- Includes:
- HTTParty
- Defined in:
- lib/wufoo_party.rb
Overview
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(id, options) ⇒ Entity
constructor
A new instance of Entity.
Constructor Details
#initialize(id, options) ⇒ Entity
Returns a new instance of Entity.
178 179 180 181 182 183 184 185 186 187 188 |
# File 'lib/wufoo_party.rb', line 178 def initialize(id, ) @id = id if [:party] @party = [:party] elsif [:account] and [:api_key] @party = WufooParty.new([:account], [:api_key]) else raise WufooParty::InitializationException, "You must either specify a :party object or pass the :account and :api_key options. Please see the README." end @details = [:details] end |
Instance Attribute Details
#details ⇒ Object
Returns the value of attribute details.
190 191 192 |
# File 'lib/wufoo_party.rb', line 190 def details @details end |