Class: GSGraph::Tab
Instance Attribute Summary collapse
-
#application ⇒ Object
Returns the value of attribute application.
-
#custom_name ⇒ Object
Returns the value of attribute custom_name.
-
#is_non_connection_landing_tab ⇒ Object
Returns the value of attribute is_non_connection_landing_tab.
-
#is_permanent ⇒ Object
Returns the value of attribute is_permanent.
-
#link ⇒ Object
Returns the value of attribute link.
-
#position ⇒ Object
Returns the value of attribute position.
Attributes inherited from Node
#access_token, #endpoint, #identifier, #raw_attributes
Instance Method Summary collapse
-
#initialize(identifier, attributes = {}) ⇒ Tab
constructor
A new instance of Tab.
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
#application ⇒ Object
Returns the value of attribute application.
3 4 5 |
# File 'lib/gs_graph/tab.rb', line 3 def application @application end |
#custom_name ⇒ Object
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_tab ⇒ Object
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_permanent ⇒ Object
Returns the value of attribute is_permanent.
3 4 5 |
# File 'lib/gs_graph/tab.rb', line 3 def is_permanent @is_permanent end |
#link ⇒ Object
Returns the value of attribute link.
3 4 5 |
# File 'lib/gs_graph/tab.rb', line 3 def link @link end |
#position ⇒ Object
Returns the value of attribute position.
3 4 5 |
# File 'lib/gs_graph/tab.rb', line 3 def position @position end |