Class: ExotelApi::Metadata

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/exotel_api/metadata.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMetadata

Returns a new instance of Metadata.



8
# File 'lib/exotel_api/metadata.rb', line 8

def initialize; end

Class Method Details

.details(params = {}) ⇒ Object



10
11
12
# File 'lib/exotel_api/metadata.rb', line 10

def self.details(params={})
  self.new.details(params)
end

Instance Method Details

#details(number) ⇒ Object



14
15
16
17
# File 'lib/exotel_api/metadata.rb', line 14

def details(number)
  response = self.class.get("/#{ExotelApi.exotel_sid}/Numbers/#{number}",  :basic_auth => auth)
  handle_response(response)
end