Class: ObiWan::Type::Builder
- Inherits:
-
Object
- Object
- ObiWan::Type::Builder
- Defined in:
- lib/obi-wan/type.rb
Direct Known Subclasses
BillingAddress, Instrument, InstrumentInfo, Name, Phone, RegisterOfferSubscription
Instance Method Summary collapse
-
#initialize(init = {}) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(init = {}) ⇒ Builder
Returns a new instance of Builder.
4 5 6 7 8 |
# File 'lib/obi-wan/type.rb', line 4 def initialize(init={}) init.keys.each do |attr| self.send("#{attr}=".to_sym, init[attr]) end end |