Class: LabClient::Snippet
- Includes:
- ClassHelpers
- Defined in:
- lib/labclient/snippets/snippet.rb
Overview
Inspect Helper
Instance Attribute Summary
Attributes inherited from Klass
Attributes inherited from LabStruct
Instance Method Summary collapse
- #agent_detail ⇒ Object
- #delete ⇒ Object
- #inspect ⇒ Object
- #raw ⇒ Object
- #update(query = {}) ⇒ Object
Methods included from ClassHelpers
Methods inherited from Klass
#api_methods, #collect_project_id, #collect_release_id, #collect_repository_id, date_time_attrs, #format_time?, #group_name, #help, #initialize, #klass, #quiet?, #success?, #to_json, #update_self, user_attrs, #valid_group_project_levels, #verbose
Methods included from Docs
#demo, #desc, #doc, docs, #example, #group_name, #help, json, #markdown, #navigation, #option, #result, #subtitle, #title
Methods included from CurlHelper
Methods included from Logger
Methods inherited from LabStruct
#as_json, #client, #keys, #slice, #success?
Constructor Details
This class inherits a constructor from LabClient::Klass
Instance Method Details
#agent_detail ⇒ Object
19 20 21 |
# File 'lib/labclient/snippets/snippet.rb', line 19 def agent_detail client.snippets.agent_detail(id) end |
#delete ⇒ Object
27 28 29 |
# File 'lib/labclient/snippets/snippet.rb', line 27 def delete client.snippets.delete id end |
#inspect ⇒ Object
7 8 9 |
# File 'lib/labclient/snippets/snippet.rb', line 7 def inspect "#<Snippet id: #{id}, title: #{title}>" end |
#raw ⇒ Object
15 16 17 |
# File 'lib/labclient/snippets/snippet.rb', line 15 def raw client.snippets.raw(id) end |
#update(query = {}) ⇒ Object
11 12 13 |
# File 'lib/labclient/snippets/snippet.rb', line 11 def update(query = {}) update_self client.snippets.update(id, query) end |