Class: SlackTrello::ResponseParser
- Inherits:
-
Object
- Object
- SlackTrello::ResponseParser
- Defined in:
- lib/slack_trello/response_parser.rb
Instance Attribute Summary collapse
-
#args ⇒ Object
readonly
Returns the value of attribute args.
Instance Method Summary collapse
-
#initialize(args) ⇒ ResponseParser
constructor
A new instance of ResponseParser.
- #method_missing(name) ⇒ Object
Constructor Details
#initialize(args) ⇒ ResponseParser
Returns a new instance of ResponseParser.
5 6 7 |
# File 'lib/slack_trello/response_parser.rb', line 5 def initialize(args) @args = args end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name) ⇒ Object
9 10 11 12 |
# File 'lib/slack_trello/response_parser.rb', line 9 def method_missing(name) super unless args.has_key?(name.to_s) args.fetch(name.to_s) end |
Instance Attribute Details
#args ⇒ Object (readonly)
Returns the value of attribute args.
3 4 5 |
# File 'lib/slack_trello/response_parser.rb', line 3 def args @args end |