Class: Dnsimple::Struct::Base
- Inherits:
-
Object
- Object
- Dnsimple::Struct::Base
- Defined in:
- lib/dnsimple/struct.rb
Direct Known Subclasses
Account, Certificate, CertificateBundle, CertificatePurchase, CertificateRenewal, Charge, Charge::ChargeItem, Collaborator, Contact, DelegationSignerRecord, DnsAnalytics, Dnssec, Domain, DomainCheck, DomainPremiumPrice, DomainPrice, DomainPush, DomainRegistration, DomainRenewal, DomainRestore, DomainTransfer, EmailForward, ExtendedAttribute, ExtendedAttribute::Option, OauthToken, RegistrantChange, RegistrantChangeCheck, Service, Service::Setting, Template, TemplateRecord, Tld, TransferLock, User, VanityNameServer, Webhook, Whoami, WhoisPrivacy, WhoisPrivacyRenewal, Zone, ZoneDistribution, ZoneFile, ZoneRecord
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
7 8 9 10 11 12 |
# File 'lib/dnsimple/struct.rb', line 7 def initialize(attributes = {}) attributes.each do |key, value| m = :"#{key}=" send(m, value) if respond_to?(m) end end |