Class: StatusCat::Config
- Inherits:
-
Object
- Object
- StatusCat::Config
- Includes:
- Singleton
- Defined in:
- lib/status_cat/config.rb
Constant Summary collapse
- NIL_PROC =
proc {}
Instance Attribute Summary collapse
-
#authenticate ⇒ Object
Returns the value of attribute authenticate.
-
#authorize ⇒ Object
Returns the value of attribute authorize.
-
#enabled ⇒ Object
Returns the value of attribute enabled.
-
#from ⇒ Object
Returns the value of attribute from.
-
#layout ⇒ Object
Returns the value of attribute layout.
-
#noreply ⇒ Object
Returns the value of attribute noreply.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
- #authenticate_with(&blk) ⇒ Object
- #authorize_with(&block) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
Instance Attribute Details
#authenticate ⇒ Object
Returns the value of attribute authenticate.
11 12 13 |
# File 'lib/status_cat/config.rb', line 11 def authenticate @authenticate end |
#authorize ⇒ Object
Returns the value of attribute authorize.
11 12 13 |
# File 'lib/status_cat/config.rb', line 11 def @authorize end |
#enabled ⇒ Object
Returns the value of attribute enabled.
10 11 12 |
# File 'lib/status_cat/config.rb', line 10 def enabled @enabled end |
#from ⇒ Object
Returns the value of attribute from.
12 13 14 |
# File 'lib/status_cat/config.rb', line 12 def from @from end |
#layout ⇒ Object
Returns the value of attribute layout.
13 14 15 |
# File 'lib/status_cat/config.rb', line 13 def layout @layout end |
#noreply ⇒ Object
Returns the value of attribute noreply.
12 13 14 |
# File 'lib/status_cat/config.rb', line 12 def noreply @noreply end |
#subject ⇒ Object
Returns the value of attribute subject.
12 13 14 |
# File 'lib/status_cat/config.rb', line 12 def subject @subject end |
#to ⇒ Object
Returns the value of attribute to.
12 13 14 |
# File 'lib/status_cat/config.rb', line 12 def to @to end |
Instance Method Details
#authenticate_with(&blk) ⇒ Object
21 22 23 24 |
# File 'lib/status_cat/config.rb', line 21 def authenticate_with(&blk) @authenticate = blk if blk @authenticate || NIL_PROC end |
#authorize_with(&block) ⇒ Object
26 27 28 29 |
# File 'lib/status_cat/config.rb', line 26 def (&block) @authorize = block if block @authorize || NIL_PROC end |