Class: Layabout::FileList
- Inherits:
-
Object
- Object
- Layabout::FileList
- Extended by:
- Forwardable
- Defined in:
- lib/layabout/file_list.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ FileList
constructor
A new instance of FileList.
- #list ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ FileList
Returns a new instance of FileList.
12 13 14 15 16 17 18 19 20 |
# File 'lib/layabout/file_list.rb', line 12 def initialize(={}) @configuration = ::Layabout.configuration @user = [:user] @ts_from = [:ts_from] @ts_to = [:ts_to] @types = [:types] @count = [:count] @page = [:page] end |
Instance Method Details
#list ⇒ Object
22 23 24 |
# File 'lib/layabout/file_list.rb', line 22 def list process 'files', SlackResponse.new(HTTPI.get(http_request(endpoint))) end |