Class: Gupshup::REST::Api
- Defined in:
- lib/gupshup-rb/rest/api.rb,
lib/gupshup-rb/rest/api/v1.rb,
lib/gupshup-rb/rest/api/v1/message.rb
Defined Under Namespace
Classes: V1
Instance Attribute Summary
Attributes inherited from Domain
Instance Method Summary collapse
-
#initialize(gupshup) ⇒ Api
constructor
Initialize the Api Domain.
- #messages(sid = :unset) ⇒ Gupshup::REST::Api::V1::AccountContext::MessageInstance, Gupshup::REST::Api::V1::AccountContext::MessageList
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#v1 ⇒ Object
Version v1 of api.
Methods inherited from Domain
Constructor Details
#initialize(gupshup) ⇒ Api
Initialize the Api Domain
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/gupshup-rb/rest/api.rb', line 6 def initialize(gupshup) super #@base_url = 'https://api.gupshup.com' #@host = 'api.gupshup.com' #@port = 443 @uri = "https://api.gupshup.io/sm/api/v1/msg" # Versions @v1 = nil end |
Instance Method Details
#messages(sid = :unset) ⇒ Gupshup::REST::Api::V1::AccountContext::MessageInstance, Gupshup::REST::Api::V1::AccountContext::MessageList
29 30 31 |
# File 'lib/gupshup-rb/rest/api.rb', line 29 def (sid=:unset) self.(sid) end |
#to_s ⇒ Object
Provide a user friendly representation
35 36 37 |
# File 'lib/gupshup-rb/rest/api.rb', line 35 def to_s '#<Gupshup::REST::Api>' end |