Class: ZendeskAPI::View
- Includes:
- Conditions
- Defined in:
- lib/zendesk_api/resources.rb
Instance Attribute Summary
Attributes inherited from DataResource
Attributes inherited from Data
#association, #attributes, #errors, #response
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Conditions
#add_all_condition, #add_any_condition, #all_conditions=, #any_conditions=
Methods included from Destroy
#destroy, #destroy!, #destroyed?, included
Methods included from Update
Methods included from Save
#clear_associations, #save, #save!, #save_associations
Methods included from ResponseHandler
Methods included from Create
Methods included from Read
Methods included from Sideloading
Methods included from Verbs
Methods inherited from Data
#==, #attributes_for_save, #id, inherited, #initialize, #loaded_associations, #method_missing, namespace, new_from_response, #new_record?, #path, resource_name, resource_path, #respond_to_missing?, singular_resource_name, subclasses, #to_json, #to_s
Methods included from Associations
Constructor Details
This class inherits a constructor from ZendeskAPI::Data
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ZendeskAPI::Data
Class Method Details
.cbp_path_regexes ⇒ Object
696 697 698 |
# File 'lib/zendesk_api/resources.rb', line 696 def self.cbp_path_regexes [/^views$/] end |
.preview(client, options = {}) ⇒ Object
692 693 694 |
# File 'lib/zendesk_api/resources.rb', line 692 def self.preview(client, = {}) Collection.new(client, ViewRow, .merge(:path => "views/preview", :verb => :post)) end |
Instance Method Details
#add_column(column) ⇒ Object
681 682 683 684 685 |
# File 'lib/zendesk_api/resources.rb', line 681 def add_column(column) columns = execution.columns.map(&:id) columns << column self.columns = columns end |
#columns=(columns) ⇒ Object
687 688 689 690 |
# File 'lib/zendesk_api/resources.rb', line 687 def columns=(columns) self.output ||= {} self.output[:columns] = columns end |