Class: EgovUtils::FullAddress

Inherits:
AzaharaSchema::DerivedAttribute
  • Object
show all
Defined in:
app/attributes/egov_utils/full_address.rb

Instance Method Summary collapse

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, **options)
  super(model, name, :concat, 'postcode', 'city', 'street', 'number', options)
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 build_json_options!(options)
  options[:methods] ||= []
  options[:methods] << name
  options
end