Class: Phoebe::Resources::Ref::Region

Inherits:
Object
  • Object
show all
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

Classes: Adjacent, Info, List

Instance Attribute Summary collapse

Instance Method Summary collapse

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.

Parameters:



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

#adjacentPhoebe::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

#infoPhoebe::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

#listPhoebe::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