Class: Kount::Segment

Inherits:
Object
  • Object
show all
Defined in:
lib/kount/response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



75
76
77
# File 'lib/kount/response.rb', line 75

def id
  @id
end

#nameObject

Returns the value of attribute name.



75
76
77
# File 'lib/kount/response.rb', line 75

def name
  @name
end

#priorityObject

Returns the value of attribute priority.



75
76
77
# File 'lib/kount/response.rb', line 75

def priority
  @priority
end