Class: ExotelApi::Metadata
- Inherits:
-
Object
- Object
- ExotelApi::Metadata
- Includes:
- HTTParty
- Defined in:
- lib/exotel_api/metadata.rb
Class Method Summary collapse
Instance Method Summary collapse
- #details(number) ⇒ Object
-
#initialize ⇒ Metadata
constructor
A new instance of Metadata.
Constructor Details
#initialize ⇒ Metadata
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 |