lib/kentaa/api/resources/address.rb in kentaa-api-0.3.2 vs lib/kentaa/api/resources/address.rb in kentaa-api-0.4.0
- old
+ new
@@ -1,10 +1,16 @@
# frozen_string_literal: true
module Kentaa
module Api
module Resources
- class Address < Resource
+ class Address
+ attr_reader :data
+
+ def initialize(data)
+ @data = data
+ end
+
def address
data[:address]
end
def address2