Module: Insightly2::DSL::Tags
- Included in:
- Insightly2::DSL
- Defined in:
- lib/insightly2/dsl/tags.rb
Instance Method Summary collapse
-
#get_tag(id: nil) ⇒ Insightly2::Resources::Tag?
GET /v2.1/Tags/id Get a tag.
Instance Method Details
#get_tag(id: nil) ⇒ Insightly2::Resources::Tag?
GET /v2.1/Tags/id Get a tag.
10 11 12 13 |
# File 'lib/insightly2/dsl/tags.rb', line 10 def get_tag(id: nil) raise ArgumentError, "ID cannot be blank" if id.blank? Resources::Tag.parse(request(:get, "Tags/#{id}")) end |