Class: SlackTrello::ResponseParser

Inherits:
Object
  • Object
show all
Defined in:
lib/slack_trello/response_parser.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#argsObject (readonly)

Returns the value of attribute args.



3
4
5
# File 'lib/slack_trello/response_parser.rb', line 3

def args
  @args
end