Class: LexofficeClient::Model::Base
- Inherits:
-
Object
- Object
- LexofficeClient::Model::Base
- Extended by:
- ActiveModel::Naming, ActiveModel::Translation
- Includes:
- ActiveModel::Conversion, AttributeNamesConcern, SerializationConcern
- Defined in:
- lib/lexoffice_client/model/base.rb
Direct Known Subclasses
Address, Company, Contact, Document, Invoice, LineItem, PaymentConditions, RelatedVoucher, Role, ShippingConditions, TaxAmount, TaxConditions, TotalPrice, UnitPrice
Defined Under Namespace
Modules: AttributeNamesConcern, SerializationConcern
Instance Method Summary collapse
- #attributes=(attributes) ⇒ Object
-
#initialize(attributes = {}) ⇒ Base
constructor
A new instance of Base.
Methods included from SerializationConcern
Methods included from AttributeNamesConcern
Constructor Details
#initialize(attributes = {}) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 |
# File 'lib/lexoffice_client/model/base.rb', line 10 def initialize(attributes = {}) attributes.each do |k, v| send("#{k.to_s.underscore}=", v) end end |
Instance Method Details
#attributes=(attributes) ⇒ Object
16 17 18 19 20 |
# File 'lib/lexoffice_client/model/base.rb', line 16 def attributes=(attributes) attributes.each do |k, v| send("#{k.to_s.underscore}=", v) end end |