Class: Kentaa::Api::Resources::Consent
- Inherits:
-
Object
- Object
- Kentaa::Api::Resources::Consent
- Defined in:
- lib/kentaa/api/resources/consent.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data) ⇒ Consent
constructor
A new instance of Consent.
- #text ⇒ Object
- #url ⇒ Object
- #version ⇒ Object
Constructor Details
#initialize(data) ⇒ Consent
Returns a new instance of Consent.
9 10 11 |
# File 'lib/kentaa/api/resources/consent.rb', line 9 def initialize(data) @data = data end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
7 8 9 |
# File 'lib/kentaa/api/resources/consent.rb', line 7 def data @data end |
Instance Method Details
#text ⇒ Object
17 18 19 |
# File 'lib/kentaa/api/resources/consent.rb', line 17 def text data[:text] end |
#url ⇒ Object
13 14 15 |
# File 'lib/kentaa/api/resources/consent.rb', line 13 def url data[:url] end |
#version ⇒ Object
21 22 23 |
# File 'lib/kentaa/api/resources/consent.rb', line 21 def version data[:version] end |