Method: GnipApi::Apis::PowerTrack::Rules#create
- Defined in:
- lib/gnip_api/apis/power_track/rules.rb
permalink #create(rules) ⇒ Object
Creates the specified rule. Parameters:
-
rules: GnipApi::Apis::PowerTrack::Rule object
29 30 31 32 33 |
# File 'lib/gnip_api/apis/power_track/rules.rb', line 29 def create rules raise GnipApi::Errors::PowerTrack::MissingRules.new if rules.nil? || rules.empty? request = create_post_request(construct_rules(rules)) adapter.post(request) end |