Class: Clickwrap::Presenter::Result
- Inherits:
-
Data
- Object
- Data
- Clickwrap::Presenter::Result
- Defined in:
- lib/clickwrap/presenter.rb
Instance Attribute Summary collapse
-
#actor ⇒ Object
readonly
Returns the value of attribute actor.
-
#combined ⇒ Object
readonly
Returns the value of attribute combined.
-
#locale ⇒ Object
readonly
Returns the value of attribute locale.
-
#manifest ⇒ Object
readonly
Returns the value of attribute manifest.
-
#policy ⇒ Object
readonly
Returns the value of attribute policy.
-
#represented_party ⇒ Object
readonly
Returns the value of attribute represented_party.
-
#statements ⇒ Object
readonly
Returns the value of attribute statements.
-
#subject ⇒ Object
readonly
Returns the value of attribute subject.
-
#submit_button_text ⇒ Object
readonly
Returns the value of attribute submit_button_text.
-
#tenant_key ⇒ Object
readonly
Returns the value of attribute tenant_key.
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
- #as_json ⇒ Object
- #combined? ⇒ Boolean
-
#itemized_statements ⇒ Object
The statements this presentation renders as controls of their own: everything the composed line could not honestly absorb.
- #policy_key ⇒ Object
- #revision ⇒ Object
- #statement(key) ⇒ Object
- #to_h ⇒ Object
Instance Attribute Details
#actor ⇒ Object (readonly)
Returns the value of attribute actor
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def actor @actor end |
#combined ⇒ Object (readonly)
Returns the value of attribute combined
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def combined @combined end |
#locale ⇒ Object (readonly)
Returns the value of attribute locale
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def locale @locale end |
#manifest ⇒ Object (readonly)
Returns the value of attribute manifest
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def manifest @manifest end |
#policy ⇒ Object (readonly)
Returns the value of attribute policy
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def policy @policy end |
#represented_party ⇒ Object (readonly)
Returns the value of attribute represented_party
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def represented_party @represented_party end |
#statements ⇒ Object (readonly)
Returns the value of attribute statements
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def statements @statements end |
#subject ⇒ Object (readonly)
Returns the value of attribute subject
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def subject @subject end |
#submit_button_text ⇒ Object (readonly)
Returns the value of attribute submit_button_text
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def @submit_button_text end |
#tenant_key ⇒ Object (readonly)
Returns the value of attribute tenant_key
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def tenant_key @tenant_key end |
#token ⇒ Object (readonly)
Returns the value of attribute token
92 93 94 |
# File 'lib/clickwrap/presenter.rb', line 92 def token @token end |
Instance Method Details
#as_json ⇒ Object
99 |
# File 'lib/clickwrap/presenter.rb', line 99 def as_json(*) = manifest.to_h |
#combined? ⇒ Boolean
95 |
# File 'lib/clickwrap/presenter.rb', line 95 def combined? = !combined.nil? |
#itemized_statements ⇒ Object
The statements this presentation renders as controls of their own: everything the composed line could not honestly absorb.
103 104 105 106 107 |
# File 'lib/clickwrap/presenter.rb', line 103 def itemized_statements return statements if combined.nil? statements.reject { |statement| combined.covers?(statement.key) } end |
#policy_key ⇒ Object
96 |
# File 'lib/clickwrap/presenter.rb', line 96 def policy_key = policy.key |
#revision ⇒ Object
97 |
# File 'lib/clickwrap/presenter.rb', line 97 def revision = manifest.revision_digest |
#statement(key) ⇒ Object
94 |
# File 'lib/clickwrap/presenter.rb', line 94 def statement(key) = statements.find { |candidate| candidate.key == key.to_s } |
#to_h ⇒ Object
98 |
# File 'lib/clickwrap/presenter.rb', line 98 def to_h = manifest.to_h |