Class: TinCanApi::StatementsQueryV095
- Inherits:
-
Object
- Object
- TinCanApi::StatementsQueryV095
- Defined in:
- lib/tin_can_api/statements_query_v095.rb
Instance Attribute Summary collapse
-
#actor ⇒ Object
Returns the value of attribute actor.
-
#ascending ⇒ Object
Returns the value of attribute ascending.
-
#authoritative ⇒ Object
Returns the value of attribute authoritative.
-
#context ⇒ Object
Returns the value of attribute context.
-
#instructor ⇒ Object
Returns the value of attribute instructor.
-
#limit ⇒ Object
Returns the value of attribute limit.
-
#object ⇒ Object
Returns the value of attribute object.
-
#registration ⇒ Object
Returns the value of attribute registration.
-
#sparse ⇒ Object
Returns the value of attribute sparse.
-
#stored_since ⇒ Object
Returns the value of attribute stored_since.
-
#stored_until ⇒ Object
Returns the value of attribute stored_until.
-
#verb_id ⇒ Object
Returns the value of attribute verb_id.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(&block) ⇒ StatementsQueryV095
constructor
A new instance of StatementsQueryV095.
- #parameter_map ⇒ Object
Constructor Details
#initialize(&block) ⇒ StatementsQueryV095
Returns a new instance of StatementsQueryV095.
9 10 11 12 13 14 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 9 def initialize(&block) self.version = TCAPIVersion::V095 if block_given? block[self] end end |
Instance Attribute Details
#actor ⇒ Object
Returns the value of attribute actor.
6 7 8 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 6 def actor @actor end |
#ascending ⇒ Object
Returns the value of attribute ascending.
7 8 9 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 7 def ascending @ascending end |
#authoritative ⇒ Object
Returns the value of attribute authoritative.
7 8 9 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 7 def @authoritative end |
#context ⇒ Object
Returns the value of attribute context.
6 7 8 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 6 def context @context end |
#instructor ⇒ Object
Returns the value of attribute instructor.
7 8 9 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 7 def instructor @instructor end |
#limit ⇒ Object
Returns the value of attribute limit.
6 7 8 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 6 def limit @limit end |
#object ⇒ Object
Returns the value of attribute object.
6 7 8 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 6 def object @object end |
#registration ⇒ Object
Returns the value of attribute registration.
6 7 8 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 6 def registration @registration end |
#sparse ⇒ Object
Returns the value of attribute sparse.
7 8 9 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 7 def sparse @sparse end |
#stored_since ⇒ Object
Returns the value of attribute stored_since.
6 7 8 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 6 def stored_since @stored_since end |
#stored_until ⇒ Object
Returns the value of attribute stored_until.
6 7 8 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 6 def stored_until @stored_until end |
#verb_id ⇒ Object
Returns the value of attribute verb_id.
5 6 7 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 5 def verb_id @verb_id end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
5 6 7 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 5 def version @version end |
Instance Method Details
#parameter_map ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/tin_can_api/statements_query_v095.rb', line 24 def parameter_map params = {} params['verb'] = verb_id.to_s if verb_id params['object'] = object.serialize(version) if object params['registration'] = registration if registration params['context'] = context if context params['actor'] = actor if actor params['since'] = stored_since.strftime('%FT%T%:z') if stored_since params['until'] = stored_until.strftime('%FT%T%:z') if stored_until params['limit'] = limit if limit params['authoritative'] = if params['sparse'] = sparse if sparse params['instructor'] = instructor.serialize(version) if instructor params['ascending'] = ascending if ascending params end |