Class: Ecertic::Resource::Base
- Inherits:
-
Object
- Object
- Ecertic::Resource::Base
- Defined in:
- lib/ecertic/resources/base.rb
Direct Known Subclasses
Document, OTP::Request, OTP::Status, Token::Instance, Token::Validation
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
6 7 8 9 10 11 |
# File 'lib/ecertic/resources/base.rb', line 6 def initialize(attributes = {}) attributes.each do |key, value| m = "#{key}=".to_sym send(m, value) if respond_to?(m) end end |