Sha256: df9bc368c03a0d7fbb25075c8c08e9202c3a448382aa76452f4015a3bef5aac1

Contents?: true

Size: 1.38 KB

Versions: 77

Compression:

Stored size: 1.38 KB

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2017 GoodData Corporation. All rights reserved.
# This source code is licensed under the BSD-style license found in the
# LICENSE file in the root directory of this source tree.

module GoodData
  class DashboardAttachment
    include GoodData::Mixin::RootKeyGetter
    include GoodData::Mixin::DataGetter

    attr_reader :scheduled_email
    attr_accessor :json

    DEFAULT_OPTS = {
      :allTabs => 1,
      :tabs => []
    }

    def initialize(scheduled_email, json)
      @scheduled_email = scheduled_email
      @json = json
    end

    # Get all tabs flag
    #
    # @return [Fixnum] All dashboard tabs?
    def all_tabs
      data['allTabs']
    end

    # Set all tabs flag
    #
    # @param [String | Fixnum] new_all_tabs New value of all_tabs flag to be set
    # @return [Fixnum] New value of all_tabs flag
    def all_tabs=(new_all_tabs)
      data['allTabs'] = new_all_tabs.to_i
    end

    # Get selected tabs
    #
    # @return [Array<String>] List of selected tabs
    def tabs
      data['tabs']
    end

    # Set selected tabs
    #
    # @param [Array<String>] new_tabs New list of selected tabs to be set
    # @return [Array<String>] New list of selected tabs
    def tabs=(new_tabs)
      data['tabs'] = new_tabs
    end

    # Get attachment URI
    #
    # @return [String] Attachment URI
    def uri
      data['uri']
    end
  end
end

Version data entries

77 entries across 77 versions & 1 rubygems

Version Path
gooddata-2.3.1-java lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.3.1 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.3.0-java lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.3.0 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.2.0-java lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.2.0 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.19-java lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.19 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.17-java lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.17 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.15-java lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.15 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.14-java lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.14 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.13-java lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.13 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.12-java lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.12 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.11-java lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-2.1.11 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb