Class: Grut::Statement::Entry
- Inherits:
-
Struct
- Object
- Struct
- Grut::Statement::Entry
- Defined in:
- lib/grut/statement.rb
Instance Attribute Summary collapse
-
#contract_key ⇒ Object
Returns the value of attribute contract_key.
-
#contract_value ⇒ Object
Returns the value of attribute contract_value.
-
#permission ⇒ Object
Returns the value of attribute permission.
-
#role ⇒ Object
Returns the value of attribute role.
Class Method Summary collapse
Instance Attribute Details
#contract_key ⇒ Object
Returns the value of attribute contract_key
5 6 7 |
# File 'lib/grut/statement.rb', line 5 def contract_key @contract_key end |
#contract_value ⇒ Object
Returns the value of attribute contract_value
5 6 7 |
# File 'lib/grut/statement.rb', line 5 def contract_value @contract_value end |
#permission ⇒ Object
Returns the value of attribute permission
5 6 7 |
# File 'lib/grut/statement.rb', line 5 def @permission end |
#role ⇒ Object
Returns the value of attribute role
5 6 7 |
# File 'lib/grut/statement.rb', line 5 def role @role end |
Class Method Details
.from_hash(hash) ⇒ Object
6 7 8 |
# File 'lib/grut/statement.rb', line 6 def self.from_hash(hash) new(*hash.values_at(:role, :permission, :contract_key, :contract_value)) end |