Sha256: acaadb52cf7e8f9ea83583a9d7ee357aa4cf6e1f8e4e7bc9cebae77237e550fd
Contents?: true
Size: 1.5 KB
Versions: 2
Compression:
Stored size: 1.5 KB
Contents
require 'smartsheet/endpoints/share/share' module Smartsheet class SightsShare attr_reader :client private :client URL = ['sights', :sight_id] def initialize(client) @client = client end def delete(sight_id:, share_id:, params: {}, header_overrides: {}) delete_share( share_id: share_id, url: URL, params: params, header_overrides: header_overrides, sight_id: sight_id ) end def get(sight_id:, share_id:, params: {}, header_overrides: {}) get_share( share_id: share_id, url: URL, params: params, header_overrides: header_overrides, sight_id: sight_id ) end def list(sight_id:, params: {}, header_overrides: {}) list_share( url: URL, header_overrides: header_overrides, params: params, sight_id: sight_id ) end def create(sight_id:, body:, params: {}, header_overrides: {}) create_share( url: URL, header_overrides: header_overrides, params: params, body: body, sight_id: sight_id ) end def update(sight_id:, share_id:, body:, params: {}, header_overrides: {}) update_share( share_id: share_id, url: URL, params: params, header_overrides: header_overrides, body: body, sight_id: sight_id ) end private include Smartsheet::Share end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smartsheet-1.0.0.beta.2 | lib/smartsheet/endpoints/sights/sights_share.rb |
smartsheet-1.0.0.beta.0 | lib/smartsheet/endpoints/sights/sights_share.rb |