Class: Twitter::API::Arguments

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(args) ⇒ Arguments

Returns a new instance of Arguments.



6
7
8
9
# File 'lib/hackeroo/api/arguments.rb', line 6

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

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



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

def options
  @options
end