Class: StoreStateSet

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#stateObject (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