Class: Dimelo::CCP::FeedbackComment
- Inherits:
-
API::Model
- Object
- API::Model
- Dimelo::CCP::FeedbackComment
- Includes:
- API::Common::Publishable
- Defined in:
- lib/dimelo/ccp/api/model/feedback_comment.rb
Constant Summary collapse
- STATUS_COMMENT_PATH =
'feedbacks/%{feedback_id}/status_comments/%{id}'
- COMMENT_PATH =
'feedbacks/%{feedback_id}/comments/%{id}'
Constants inherited from API::Model
API::Model::INTERPOLATION_PATTERN
Instance Attribute Summary
Attributes inherited from API::Model
#client, #errors, #tracked_attributes
Instance Method Summary collapse
Methods included from API::Common::Publishable
Methods inherited from API::Model
#==, attribute, attributes, #attributes, #attributes=, belongs_to, compute_path, #destroy, find, has_many, human_attribute_name, #initialize, lookup_ancestors, #merge!, #new_record?, parse, path, #read_attribute_for_validation, #reload, #save, #submit_attributes, submit_attributes, #to_json, #tracked_submit_attributes, #valid?, #warn
Constructor Details
This class inherits a constructor from Dimelo::CCP::API::Model
Instance Method Details
#create ⇒ Object
16 17 18 19 20 21 |
# File 'lib/dimelo/ccp/api/model/feedback_comment.rb', line 16 def create self.class.path(STATUS_COMMENT_PATH) if status_id super ensure self.class.path(COMMENT_PATH) if status_id end |
#update ⇒ Object
23 24 25 26 27 28 |
# File 'lib/dimelo/ccp/api/model/feedback_comment.rb', line 23 def update self.class.path(STATUS_COMMENT_PATH) if status_id super ensure self.class.path(COMMENT_PATH) if status_id end |