Sha256: c4a6c579423d9a6a4669de30e12b07aa2cd4dc93f70d2a84ccf75469f608f295

Contents?: true

Size: 1.38 KB

Versions: 26

Compression:

Stored size: 1.38 KB

Contents

# encoding: UTF-8
#
# Copyright (c) 2010-2015 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

26 entries across 26 versions & 2 rubygems

Version Path
gooddata-edge-0.6.27.edge lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.49 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.48 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.47 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.46 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.45 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.44 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.43 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.42 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.41 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.40 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.39 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.38 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.37 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.36 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.35 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.34 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.33 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.32 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb
gooddata-0.6.31 lib/gooddata/models/metadata/scheduled_mail/dashboard_attachment.rb