Skip to content

Commit

Permalink
Add inheritance
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanahman committed Jun 17, 2016
1 parent 8335010 commit 500e8ad
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/postnord/business_location.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.endpoint
end
end

class FindNearestByCoordinates
class FindNearestByCoordinates < BusinessLocation
def mandatory_params
[
'countryCode',
Expand All @@ -22,7 +22,7 @@ def mandatory_params
end
end

class FindByPostalCode
class FindByPostalCode < BusinessLocation
def mandatory_params
[
'countryCode',
Expand All @@ -31,15 +31,15 @@ def mandatory_params
end
end

class FindNearestByAddress
class FindNearestByAddress < BusinessLocation
def mandatory_params
[
'countryCode',
]
end
end

class GetServicePointInformation
class GetServicePointInformation < BusinessLocation
def mandatory_params
[]
end
Expand Down
2 changes: 1 addition & 1 deletion lib/postnord/transport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def self.endpoint
end
end

class GetTransitTimeInformation
class GetTransitTimeInformation < Transport
def mandatory_params
[
'serviceGroupCode',
Expand Down

0 comments on commit 500e8ad

Please sign in to comment.