Class: WufooParty::Entity

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/wufoo_party.rb

Overview


Direct Known Subclasses

Form, Report, User

Instance Attribute Summary collapse

Instance Method Summary collapse

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, options)
  @id = id
  if options[:party]
    @party = options[:party]
  elsif options[:account] and options[:api_key]
    @party = WufooParty.new(options[:account], options[: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 = options[:details]
end

Instance Attribute Details

#detailsObject

Returns the value of attribute details.



190
191
192
# File 'lib/wufoo_party.rb', line 190

def details
  @details
end