Method: Oceanarium::Domain.find

Defined in:
lib/oceanarium/resources/domain.rb

.find(id) ⇒ Object



64
65
66
67
68
69
70
71
72
# File 'lib/oceanarium/resources/domain.rb', line 64

def self.find(id)
  @request = Oceanarium::Request.new
  @get = @request.get("/domains/#{id}")
  if @get.parsed_response['status'] == 'OK'
    @get.parsed_response['domain']
  else
    @get.parsed_response['status']
  end
end