Class: Vayacondios::Client::ItemSet
- Inherits:
-
Object
- Object
- Vayacondios::Client::ItemSet
- Defined in:
- lib/vayacondios/client/itemset.rb
Instance Method Summary collapse
- #create(ary, organization = nil, topic = nil, id = nil) ⇒ Object
- #fetch(organization = nil, topic = nil, id = nil) ⇒ Object
-
#initialize(host, port, organization = nil, topic = nil, id = nil) ⇒ ItemSet
constructor
A new instance of ItemSet.
- #remove(ary, organization = nil, topic = nil, id = nil) ⇒ Object
- #update(ary, organization = nil, topic = nil, id = nil) ⇒ Object
Constructor Details
#initialize(host, port, organization = nil, topic = nil, id = nil) ⇒ ItemSet
Returns a new instance of ItemSet.
8 9 10 11 12 13 14 |
# File 'lib/vayacondios/client/itemset.rb', line 8 def initialize host, port, organization=nil, topic=nil, id=nil @host = host @port = port @organization = organization @topic = topic @id = id end |
Instance Method Details
#create(ary, organization = nil, topic = nil, id = nil) ⇒ Object
25 26 27 |
# File 'lib/vayacondios/client/itemset.rb', line 25 def create ary, organization=nil, topic=nil, id=nil execute_request(_req(:create, ary, organization, topic, id)) end |
#fetch(organization = nil, topic = nil, id = nil) ⇒ Object
16 17 18 19 |
# File 'lib/vayacondios/client/itemset.rb', line 16 def fetch organization=nil, topic=nil, id=nil resp = execute_request(_req(:fetch, nil, organization, topic, id)) and resp["contents"] end |
#remove(ary, organization = nil, topic = nil, id = nil) ⇒ Object
29 30 31 |
# File 'lib/vayacondios/client/itemset.rb', line 29 def remove ary, organization=nil, topic=nil, id=nil execute_request(_req(:remove, ary, organization, topic, id)) end |
#update(ary, organization = nil, topic = nil, id = nil) ⇒ Object
21 22 23 |
# File 'lib/vayacondios/client/itemset.rb', line 21 def update ary, organization=nil, topic=nil, id=nil execute_request(_req(:update, ary, organization, topic, id)) end |