Skip to content

Commit

Permalink
Sync services available in office from axiomus
Browse files Browse the repository at this point in the history
  • Loading branch information
pustserg committed Oct 25, 2016
1 parent b257aae commit 91944c2
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
axiomus_api (0.6.1)
axiomus_api (0.6.2)
barby (~> 0.5)
chunky_png (~> 1.3)
nokogiri (~> 1.6)
Expand Down Expand Up @@ -76,3 +76,6 @@ DEPENDENCIES
faker
rspec
rspec-collection_matchers

BUNDLED WITH
1.13.6
2 changes: 2 additions & 0 deletions lib/axiomus_api/response/carry_response.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class Office
attr_accessor :work_schedule
attr_accessor :area
attr_accessor :address
attr_accessor :services

def initialize(node)
@office_code = node.xpath('@office_code').text.to_i
Expand All @@ -27,6 +28,7 @@ def initialize(node)
@work_schedule = node.xpath('@WorkSchedule').text
@area = node.xpath('@Area').text
@address = Address.new(node.xpath('address'))
@services = node.xpath('services').map(&:attributes).first
end
end

Expand Down
2 changes: 1 addition & 1 deletion lib/axiomus_api/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module AxiomusApi
VERSION = '0.6.1'
VERSION = '0.6.2'
end

0 comments on commit 91944c2

Please sign in to comment.