Class: Campfiyah::Adapters::Adapter
- Inherits:
-
Object
- Object
- Campfiyah::Adapters::Adapter
- Defined in:
- lib/campfiyah/adapters.rb
Instance Attribute Summary collapse
-
#subdomain ⇒ Object
Returns the value of attribute subdomain.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(subdomain, token) ⇒ Adapter
constructor
A new instance of Adapter.
- #message(room_id, message) ⇒ Object
- #rooms ⇒ Object
Constructor Details
#initialize(subdomain, token) ⇒ Adapter
Returns a new instance of Adapter.
5 6 7 |
# File 'lib/campfiyah/adapters.rb', line 5 def initialize(subdomain, token) @subdomain, @token = subdomain, token end |
Instance Attribute Details
#subdomain ⇒ Object
Returns the value of attribute subdomain.
4 5 6 |
# File 'lib/campfiyah/adapters.rb', line 4 def subdomain @subdomain end |
#token ⇒ Object
Returns the value of attribute token.
4 5 6 |
# File 'lib/campfiyah/adapters.rb', line 4 def token @token end |
Instance Method Details
#message(room_id, message) ⇒ Object
13 14 15 |
# File 'lib/campfiyah/adapters.rb', line 13 def (room_id, ) fail "Implement #message in your own adapter" end |
#rooms ⇒ Object
9 10 11 |
# File 'lib/campfiyah/adapters.rb', line 9 def rooms fail "Implement #rooms in your own adapter" end |