Class: DNSimple::Base
- Inherits:
-
Object
- Object
- DNSimple::Base
- Defined in:
- lib/dnsimple/base.rb
Direct Known Subclasses
Certificate, Contact, Domain, ExtendedAttribute, ExtendedAttribute::Option, Record, Service, Template, TemplateRecord, TransferOrder, User
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
3 4 5 6 7 8 |
# File 'lib/dnsimple/base.rb', line 3 def initialize(attributes = {}) attributes.each do |key, value| m = "#{key}=".to_sym self.send(m, value) if self.respond_to?(m) end end |