Class: EgovUtils::FullAddress
- Inherits:
-
AzaharaSchema::DerivedAttribute
- Object
- AzaharaSchema::DerivedAttribute
- EgovUtils::FullAddress
- Defined in:
- app/attributes/egov_utils/full_address.rb
Instance Method Summary collapse
- #build_json_options!(options) ⇒ Object
-
#initialize(model, name, **options) ⇒ FullAddress
constructor
A new instance of FullAddress.
Constructor Details
#initialize(model, name, **options) ⇒ FullAddress
Returns a new instance of FullAddress.
4 5 6 |
# File 'app/attributes/egov_utils/full_address.rb', line 4 def initialize(model, name, **) super(model, name, :concat, 'postcode', 'city', 'street', 'number', ) end |
Instance Method Details
#build_json_options!(options) ⇒ Object
8 9 10 11 12 |
# File 'app/attributes/egov_utils/full_address.rb', line 8 def () [:methods] ||= [] [:methods] << name end |