Class: Kount::Segment
- Inherits:
-
Object
- Object
- Kount::Segment
- Defined in:
- lib/kount/response.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#priority ⇒ Object
Returns the value of attribute priority.
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ Segment
constructor
A new instance of Segment.
Constructor Details
#initialize(attrs = {}) ⇒ Segment
Returns a new instance of Segment.
77 78 79 80 81 |
# File 'lib/kount/response.rb', line 77 def initialize(attrs = {}) @id = attrs["id"] @name = attrs["name"] @priority = attrs["priority"] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
75 76 77 |
# File 'lib/kount/response.rb', line 75 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
75 76 77 |
# File 'lib/kount/response.rb', line 75 def name @name end |
#priority ⇒ Object
Returns the value of attribute priority.
75 76 77 |
# File 'lib/kount/response.rb', line 75 def priority @priority end |