Class: Twitter::Arguments

Inherits:
Array
  • Object
show all
Defined in:
lib/twitter/arguments.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Twitter::Arguments

Initializes a new Arguments object



9
10
11
12
# File 'lib/twitter/arguments.rb', line 9

def initialize(args)
  @options = args.last.is_a?(::Hash) ? args.pop : {}
  super(args.flatten)
end

Instance Attribute Details

#optionsHash (readonly)

Returns:

  • (Hash)


4
5
6
# File 'lib/twitter/arguments.rb', line 4

def options
  @options
end