Class: StoreStateSet
- Inherits:
-
Object
- Object
- StoreStateSet
- Defined in:
- lib/store_state_set.rb
Instance Attribute Summary collapse
-
#state ⇒ Object
readonly
Returns the value of attribute state.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attributes) ⇒ StoreStateSet
constructor
A new instance of StoreStateSet.
Constructor Details
#initialize(attributes) ⇒ StoreStateSet
Returns a new instance of StoreStateSet.
3 4 5 |
# File 'lib/store_state_set.rb', line 3 def initialize(attributes) @state = attributes[:state] end |
Instance Attribute Details
#state ⇒ Object (readonly)
Returns the value of attribute state.
2 3 4 |
# File 'lib/store_state_set.rb', line 2 def state @state end |
Class Method Details
.from_xml(xml) ⇒ Object
7 8 9 |
# File 'lib/store_state_set.rb', line 7 def self.from_xml(xml) new( :state => xml.css("State").text) end |