Class: Regis::Endpoint::Section

Inherits:
Object
  • Object
show all
Defined in:
lib/regis/endpoint/section.rb

Instance Method Summary collapse

Constructor Details

#initialize(client) ⇒ Section

Returns a new instance of Section.



7
8
9
# File 'lib/regis/endpoint/section.rb', line 7

def initialize(client)
    @client = client
end

Instance Method Details

#section_get_by_uuid(uuid) ⇒ Object



11
12
13
14
# File 'lib/regis/endpoint/section.rb', line 11

def section_get_by_uuid(uuid)
    response = @client.connection.get "/Section/#{uuid}", { :format => 'json' }
    Response::Section.new(response.body)
end