Class: Phoebe::Resources::Ref::Region
- Inherits:
-
Object
- Object
- Phoebe::Resources::Ref::Region
- Defined in:
- lib/phoebe/resources/ref/region.rb,
lib/phoebe/resources/ref/region/info.rb,
lib/phoebe/resources/ref/region/list.rb,
lib/phoebe/resources/ref/region/adjacent.rb
Defined Under Namespace
Instance Attribute Summary collapse
-
#adjacent ⇒ Phoebe::Resources::Ref::Region::Adjacent
readonly
With the ref/geo end-point you can find a country’s or region’s neighbours.
-
#info ⇒ Phoebe::Resources::Ref::Region::Info
readonly
The ref/region end-points return information on regions.
-
#list ⇒ Phoebe::Resources::Ref::Region::List
readonly
The ref/region end-points return information on regions.
Instance Method Summary collapse
-
#initialize(client:) ⇒ Region
constructor
private
A new instance of Region.
Constructor Details
#initialize(client:) ⇒ Region
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Region.
22 23 24 25 26 27 |
# File 'lib/phoebe/resources/ref/region.rb', line 22 def initialize(client:) @client = client @adjacent = Phoebe::Resources::Ref::Region::Adjacent.new(client: client) @info = Phoebe::Resources::Ref::Region::Info.new(client: client) @list = Phoebe::Resources::Ref::Region::List.new(client: client) end |
Instance Attribute Details
#adjacent ⇒ Phoebe::Resources::Ref::Region::Adjacent (readonly)
With the ref/geo end-point you can find a country’s or region’s neighbours.
9 10 11 |
# File 'lib/phoebe/resources/ref/region.rb', line 9 def adjacent @adjacent end |
#info ⇒ Phoebe::Resources::Ref::Region::Info (readonly)
The ref/region end-points return information on regions.
13 14 15 |
# File 'lib/phoebe/resources/ref/region.rb', line 13 def info @info end |
#list ⇒ Phoebe::Resources::Ref::Region::List (readonly)
The ref/region end-points return information on regions.
17 18 19 |
# File 'lib/phoebe/resources/ref/region.rb', line 17 def list @list end |