Class: Service::ContractBase
- Inherits:
-
Object
- Object
- Service::ContractBase
- Includes:
- ActiveModel::API, ActiveModel::AttributeMethods, ActiveModel::Attributes, ActiveModel::Validations::Callbacks
- Defined in:
- lib/service/contract_base.rb
Instance Method Summary collapse
-
#initialize(*args, options: nil, **kwargs) ⇒ ContractBase
constructor
A new instance of ContractBase.
- #options ⇒ Object
- #raw_attributes ⇒ Object
- #to_hash ⇒ Object
Constructor Details
#initialize(*args, options: nil, **kwargs) ⇒ ContractBase
Returns a new instance of ContractBase.
11 12 13 14 |
# File 'lib/service/contract_base.rb', line 11 def initialize(*args, options: nil, **kwargs) @__options__ = super(*args, **kwargs) end |
Instance Method Details
#options ⇒ Object
16 17 18 |
# File 'lib/service/contract_base.rb', line 16 def @__options__ end |
#raw_attributes ⇒ Object
24 25 26 |
# File 'lib/service/contract_base.rb', line 24 def raw_attributes @attributes.values_before_type_cast end |
#to_hash ⇒ Object
20 21 22 |
# File 'lib/service/contract_base.rb', line 20 def to_hash attributes.symbolize_keys end |