Class: Layabout::FileList

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/layabout/file_list.rb

Instance Method Summary collapse

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(options={})
  @configuration = ::Layabout.configuration
  @user          = options[:user]
  @ts_from       = options[:ts_from]
  @ts_to         = options[:ts_to]
  @types         = options[:types]
  @count         = options[:count]
  @page          = options[:page]
end

Instance Method Details

#listObject



22
23
24
# File 'lib/layabout/file_list.rb', line 22

def list
  process 'files', SlackResponse.new(HTTPI.get(http_request(endpoint)))
end