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.
10 11 12 |
# File 'lib/status_cat/config.rb', line 10 def authenticate @authenticate end |
#authorize ⇒ Object
Returns the value of attribute authorize.
10 11 12 |
# File 'lib/status_cat/config.rb', line 10 def @authorize end |
#enabled ⇒ Object
Returns the value of attribute enabled.
9 10 11 |
# File 'lib/status_cat/config.rb', line 9 def enabled @enabled end |
#from ⇒ Object
Returns the value of attribute from.
11 12 13 |
# File 'lib/status_cat/config.rb', line 11 def from @from end |
#layout ⇒ Object
Returns the value of attribute layout.
12 13 14 |
# File 'lib/status_cat/config.rb', line 12 def layout @layout end |
#noreply ⇒ Object
Returns the value of attribute noreply.
11 12 13 |
# File 'lib/status_cat/config.rb', line 11 def noreply @noreply end |
#subject ⇒ Object
Returns the value of attribute subject.
11 12 13 |
# File 'lib/status_cat/config.rb', line 11 def subject @subject end |
#to ⇒ Object
Returns the value of attribute to.
11 12 13 |
# File 'lib/status_cat/config.rb', line 11 def to @to end |
Instance Method Details
#authenticate_with(&blk) ⇒ Object
19 20 21 22 |
# File 'lib/status_cat/config.rb', line 19 def authenticate_with(&blk) @authenticate = blk if blk @authenticate || NIL_PROC end |
#authorize_with(&block) ⇒ Object
24 25 26 27 |
# File 'lib/status_cat/config.rb', line 24 def (&block) @authorize = block if block @authorize || NIL_PROC end |