lib/oneaccess/data_object/city.rb in oneaccess-0.1.3 vs lib/oneaccess/data_object/city.rb in oneaccess-0.1.4
- old
+ new
@@ -2,9 +2,13 @@
require_relative "./representer/city"
module ONEAccess
module DataObject
class City
+ extend Serializable
+
+ represented_by Representer::City
+
attr_accessor :id
attr_accessor :name
attr_accessor :code
attr_accessor :description
attr_accessor :longitude