Class: Dnsimple::Struct::Base
- Inherits:
-
Object
- Object
- Dnsimple::Struct::Base
- Defined in:
- lib/dnsimple/struct.rb
Direct Known Subclasses
Account, Contact, Domain, DomainCheck, EmailForward, ExtendedAttribute, ExtendedAttribute::Option, OauthToken, Record, Service, Service::Setting, Template, Tld, User, Webhook, WhoisPrivacy, Zone
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
5 6 7 8 9 10 |
# File 'lib/dnsimple/struct.rb', line 5 def initialize(attributes = {}) attributes.each do |key, value| m = "#{key}=".to_sym send(m, value) if respond_to?(m) end end |