Class: Hisui::Management::Segment
- Defined in:
- lib/hisui/management/segment.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#user ⇒ Object
Returns the value of attribute user.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes, user) ⇒ Segment
constructor
A new instance of Segment.
Methods inherited from Base
Constructor Details
#initialize(attributes, user) ⇒ Segment
Returns a new instance of Segment.
6 7 8 9 10 11 |
# File 'lib/hisui/management/segment.rb', line 6 def initialize(attributes, user) @id = attributes['id'] @name = attributes['name'] @definition = attributes['definition'] @user = user end |
Instance Attribute Details
#definition ⇒ Object
Returns the value of attribute definition.
4 5 6 |
# File 'lib/hisui/management/segment.rb', line 4 def definition @definition end |
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/hisui/management/segment.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/hisui/management/segment.rb', line 4 def name @name end |
#user ⇒ Object
Returns the value of attribute user.
4 5 6 |
# File 'lib/hisui/management/segment.rb', line 4 def user @user end |
Class Method Details
.default_path ⇒ Object
13 14 15 |
# File 'lib/hisui/management/segment.rb', line 13 def self.default_path "/segments" end |