Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
tk0miya committed Nov 18, 2024
1 parent e1ec284 commit 23d670b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/alba/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def initialize(object, params: {}, within: WITHIN_DEFAULT)
# Serialize object into JSON string
#
# @param root_key [Symbol, nil, true]
# @param meta [Hash] metadata for this seialization
# @param meta [Hash] metadata for this serialization
# @return [String] serialized JSON string
def serialize(root_key: nil, meta: {})
serialize_with(as_json(root_key: root_key, meta: meta))
Expand All @@ -78,11 +78,11 @@ def to_json(options = {}, root_key: nil, meta: {})
serialize(root_key: root_key, meta: meta)
end

# Returns a Hash correspondng {#serialize}
# Returns a Hash corresponding {#serialize}
#
# @param _options [Hash] dummy parameter for Rails compatibility
# @param root_key [Symbol, nil, true]
# @param meta [Hash] metadata for this seialization
# @param meta [Hash] metadata for this serialization
# @return [Hash]
def as_json(_options = {}, root_key: nil, meta: {})
key = root_key.nil? ? fetch_key : root_key
Expand Down

0 comments on commit 23d670b

Please sign in to comment.