Class: GSGraph::Tab

Inherits:
Node
  • Object
show all
Defined in:
lib/gs_graph/tab.rb

Instance Attribute Summary collapse

Attributes inherited from Node

#access_token, #endpoint, #identifier, #raw_attributes

Instance Method Summary collapse

Methods inherited from Node

#connection, #destroy, fetch, #fetch, #update

Methods included from Comparison

#==

Constructor Details

#initialize(identifier, attributes = {}) ⇒ Tab

Returns a new instance of Tab.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/gs_graph/tab.rb', line 5

def initialize(identifier, attributes = {})
  super
  @link = attributes[:link]
  @application = if attributes[:application]
    Application.new(attributes[:application][:id], attributes[:application])
  end
  @custom_name = attributes[:custom_name]
  @is_permanent = attributes[:is_permanent]
  @position = attributes[:position]
  @is_non_connection_landing_tab = attributes[:is_non_connection_landing_tab]
end

Instance Attribute Details

#applicationObject

Returns the value of attribute application.



3
4
5
# File 'lib/gs_graph/tab.rb', line 3

def application
  @application
end

#custom_nameObject

Returns the value of attribute custom_name.



3
4
5
# File 'lib/gs_graph/tab.rb', line 3

def custom_name
  @custom_name
end

#is_non_connection_landing_tabObject

Returns the value of attribute is_non_connection_landing_tab.



3
4
5
# File 'lib/gs_graph/tab.rb', line 3

def is_non_connection_landing_tab
  @is_non_connection_landing_tab
end

#is_permanentObject

Returns the value of attribute is_permanent.



3
4
5
# File 'lib/gs_graph/tab.rb', line 3

def is_permanent
  @is_permanent
end

Returns the value of attribute link.



3
4
5
# File 'lib/gs_graph/tab.rb', line 3

def link
  @link
end

#positionObject

Returns the value of attribute position.



3
4
5
# File 'lib/gs_graph/tab.rb', line 3

def position
  @position
end