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
#==, #id, inherited, #initialize, #loaded_associations, #method_missing, namespace, new_from_response, #new_record?, #path, resource_name, resource_path, 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
.preview(client, options = {}) ⇒ Object
578 579 580 |
# File 'lib/zendesk_api/resources.rb', line 578 def self.preview(client, = {}) Collection.new(client, ViewRow, .merge(:path => "views/preview", :verb => :post)) end |
Instance Method Details
#add_column(column) ⇒ Object
567 568 569 570 571 |
# File 'lib/zendesk_api/resources.rb', line 567 def add_column(column) columns = execution.columns.map(&:id) columns << column self.columns = columns end |
#columns=(columns) ⇒ Object
573 574 575 576 |
# File 'lib/zendesk_api/resources.rb', line 573 def columns=(columns) self.output ||= {} self.output[:columns] = columns end |