Class: WuParty::Entity
Overview
Instance Attribute Summary collapse
-
#details ⇒ Object
Returns the value of attribute details.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
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.
206 207 208 209 210 211 212 213 214 215 216 |
# File 'lib/wuparty.rb', line 206 def initialize(id, ) @id = id if [:party] @party = [:party] elsif [:account] and [:api_key] @party = WuParty.new([:account], [:api_key]) else raise WuParty::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.
219 220 221 |
# File 'lib/wuparty.rb', line 219 def details @details end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
218 219 220 |
# File 'lib/wuparty.rb', line 218 def id @id end |