Class: Refile::Signature
- Inherits:
-
Object
- Object
- Refile::Signature
- Defined in:
- lib/refile/signature.rb
Instance Attribute Summary collapse
-
#as ⇒ Object
readonly
Returns the value of attribute as.
-
#fields ⇒ Object
readonly
Returns the value of attribute fields.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#url ⇒ Object
readonly
Returns the value of attribute url.
Instance Method Summary collapse
- #as_json ⇒ Object
-
#initialize(as:, id:, url:, fields:) ⇒ Signature
constructor
A new instance of Signature.
Constructor Details
#initialize(as:, id:, url:, fields:) ⇒ Signature
Returns a new instance of Signature.
5 6 7 8 9 10 |
# File 'lib/refile/signature.rb', line 5 def initialize(as:, id:, url:, fields:) @as = as @id = id @url = url @fields = fields end |
Instance Attribute Details
#as ⇒ Object (readonly)
Returns the value of attribute as.
3 4 5 |
# File 'lib/refile/signature.rb', line 3 def as @as end |
#fields ⇒ Object (readonly)
Returns the value of attribute fields.
3 4 5 |
# File 'lib/refile/signature.rb', line 3 def fields @fields end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/refile/signature.rb', line 3 def id @id end |
#url ⇒ Object (readonly)
Returns the value of attribute url.
3 4 5 |
# File 'lib/refile/signature.rb', line 3 def url @url end |
Instance Method Details
#as_json ⇒ Object
12 13 14 |
# File 'lib/refile/signature.rb', line 12 def as_json(*) { as: @as, id: @id, url: @url, fields: @fields } end |