Class: MixReader::Base
- Inherits:
-
Object
- Object
- MixReader::Base
- Includes:
- HTTParty
- Defined in:
- lib/mix_reader/base.rb
Constant Summary collapse
- MIXPANEL_JQL_URL =
"https://mixpanel.com/api/2.0/jql"
Instance Attribute Summary collapse
-
#filters ⇒ Object
Returns the value of attribute filters.
-
#options ⇒ Object
Returns the value of attribute options.
-
#script ⇒ Object
Returns the value of attribute script.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(args) ⇒ Base
constructor
A new instance of Base.
- #query ⇒ Object
Constructor Details
#initialize(args) ⇒ Base
Returns a new instance of Base.
18 19 20 21 |
# File 'lib/mix_reader/base.rb', line 18 def initialize(args) raise "can not instantiate base class" if class_name == "Base" @filters = args end |
Instance Attribute Details
#filters ⇒ Object
Returns the value of attribute filters.
8 9 10 |
# File 'lib/mix_reader/base.rb', line 8 def filters @filters end |
#options ⇒ Object
Returns the value of attribute options.
8 9 10 |
# File 'lib/mix_reader/base.rb', line 8 def @options end |
#script ⇒ Object
Returns the value of attribute script.
8 9 10 |
# File 'lib/mix_reader/base.rb', line 8 def script @script end |
Class Method Details
.query(args) ⇒ Object
11 12 13 14 15 |
# File 'lib/mix_reader/base.rb', line 11 def query(args) raise "invalid arguments" unless args.is_a?(Hash) new(args).query end |
Instance Method Details
#query ⇒ Object
23 24 25 26 27 |
# File 'lib/mix_reader/base.rb', line 23 def query build_script query_and_init_objects end |